Skip to content

Commit f9bddcd

Browse files
JoePerchesdavem330
authored andcommitted
udp: Remove unnecessary semicolon from do{}while (0) macro
Just an unnecessary semicolon that should be removed... Whitespace neatening of macro too. Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent acec6d7 commit f9bddcd

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

‎include/net/udp.h‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -230,13 +230,13 @@ struct sock *__udp6_lib_lookup(struct net *net,
230230
} while(0)
231231

232232
#if IS_ENABLED(CONFIG_IPV6)
233-
#define UDPX_INC_STATS_BH(sk, field) \
234-
do { \
235-
if ((sk)->sk_family == AF_INET) \
236-
UDP_INC_STATS_BH(sock_net(sk), field, 0); \
237-
else \
238-
UDP6_INC_STATS_BH(sock_net(sk), field, 0); \
239-
} while (0);
233+
#define UDPX_INC_STATS_BH(sk, field) \
234+
do { \
235+
if ((sk)->sk_family == AF_INET) \
236+
UDP_INC_STATS_BH(sock_net(sk), field, 0); \
237+
else \
238+
UDP6_INC_STATS_BH(sock_net(sk), field, 0); \
239+
} while (0)
240240
#else
241241
#define UDPX_INC_STATS_BH(sk, field) UDP_INC_STATS_BH(sock_net(sk), field, 0)
242242
#endif

0 commit comments

Comments
 (0)