udp: Remove unnecessary semicolon from do{}while (0) macro
authorJoe Perches <joe@perches.com>
Tue, 5 Nov 2013 22:13:47 +0000 (14:13 -0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 7 Nov 2013 07:14:33 +0000 (02:14 -0500)
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>
include/net/udp.h

index fe4ba9f32429ab7c2fc327cafd29bafadeb3561b..a24f0f3e107f67c71b256cd4fb85d04b2389fb7a 100644 (file)
@@ -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