[PATCH] pktgen: Remove trailing semicolon in macros

From: Huilong Deng
Date: Tue May 11 2021 - 09:13:07 EST


Macros should not use a trailing semicolon.

Signed-off-by: Huilong Deng <denghuilong@xxxxxxxxxx>
---
net/core/pktgen.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/net/core/pktgen.c b/net/core/pktgen.c
index 3fba429f1f57..ec814ed09a57 100644
--- a/net/core/pktgen.c
+++ b/net/core/pktgen.c
@@ -176,7 +176,7 @@
#define MAX_MPLS_LABELS 16 /* This is the max label stack depth */
#define MPLS_STACK_BOTTOM htonl(0x00000100)

-#define func_enter() pr_debug("entering %s\n", __func__);
+#define func_enter() pr_debug("entering %s\n", __func__)

#define PKT_FLAGS \
pf(IPV6) /* Interface in IPV6 Mode */ \
@@ -229,8 +229,8 @@ static char *pkt_flag_names[] = {
#define M_QUEUE_XMIT 2 /* Inject packet into qdisc */

/* If lock -- protects updating of if_list */
-#define if_lock(t) mutex_lock(&(t->if_lock));
-#define if_unlock(t) mutex_unlock(&(t->if_lock));
+#define if_lock(t) mutex_lock(&(t->if_lock))
+#define if_unlock(t) mutex_unlock(&(t->if_lock))

/* Used to help with determining the pkts on receive */
#define PKTGEN_MAGIC 0xbe9be955
--
2.31.1