summaryrefslogtreecommitdiffstats
path: root/include/net/udp.h
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2013-11-05 23:13:47 +0100
committerDavid S. Miller <davem@davemloft.net>2013-11-07 08:14:33 +0100
commitf9bddcdf1fbbbab4996e079c5ea614baa1803b47 (patch)
tree9a32a5df2030474265c79dc72bd83a51b332fbe0 /include/net/udp.h
parentsmsc9420: Use netif_<level> (diff)
downloadlinux-f9bddcdf1fbbbab4996e079c5ea614baa1803b47.tar.xz
linux-f9bddcdf1fbbbab4996e079c5ea614baa1803b47.zip
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>
Diffstat (limited to '')
-rw-r--r--include/net/udp.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/include/net/udp.h b/include/net/udp.h
index fe4ba9f32429..a24f0f3e107f 100644
--- a/include/net/udp.h
+++ b/include/net/udp.h
@@ -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