Skip to content

Commit

Permalink
udp: Remove unnecessary semicolon from do{}while (0) macro
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Joe Perches authored and David S. Miller committed Nov 7, 2013
1 parent acec6d7 commit f9bddcd
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions include/net/udp.h
Original file line number Diff line number Diff line change
Expand Up @@ -230,13 +230,13 @@ struct sock *__udp6_lib_lookup(struct net *net,
} while(0)

#if IS_ENABLED(CONFIG_IPV6)
#define UDPX_INC_STATS_BH(sk, field) \
do { \
if ((sk)->sk_family == AF_INET) \
UDP_INC_STATS_BH(sock_net(sk), field, 0); \
else \
UDP6_INC_STATS_BH(sock_net(sk), field, 0); \
} while (0);
#define UDPX_INC_STATS_BH(sk, field) \
do { \
if ((sk)->sk_family == AF_INET) \
UDP_INC_STATS_BH(sock_net(sk), field, 0); \
else \
UDP6_INC_STATS_BH(sock_net(sk), field, 0); \
} while (0)
#else
#define UDPX_INC_STATS_BH(sk, field) UDP_INC_STATS_BH(sock_net(sk), field, 0)
#endif
Expand Down

0 comments on commit f9bddcd

Please sign in to comment.