Skip to content

Commit 04c9259

Browse files
pseidererNipaLocal
authored and
NipaLocal
committed
net: pktgen: fix code style (WARNING: macros should not use a trailing semicolon)
Fix checkpatch code style warnings: WARNING: macros should not use a trailing semicolon kernel-patches#180: FILE: net/core/pktgen.c:180: +#define func_enter() pr_debug("entering %s\n", __func__); WARNING: macros should not use a trailing semicolon kernel-patches#234: FILE: net/core/pktgen.c:234: +#define if_lock(t) mutex_lock(&(t->if_lock)); CHECK: Unnecessary parentheses around t->if_lock kernel-patches#235: FILE: net/core/pktgen.c:235: +#define if_unlock(t) mutex_unlock(&(t->if_lock)); Signed-off-by: Peter Seiderer <[email protected]> Signed-off-by: NipaLocal <nipa@local>
1 parent 3b11cc3 commit 04c9259

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

net/core/pktgen.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@
177177
#define MAX_IMIX_ENTRIES 20
178178
#define IMIX_PRECISION 100 /* Precision of IMIX distribution */
179179

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

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

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

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

0 commit comments

Comments
 (0)