* [PATCH net-next trivial] udp: Remove unnecessary semicolon from do{}while (0) macro
@ 2013-11-05 22:13 Joe Perches
2013-11-07 7:14 ` David Miller
0 siblings, 1 reply; 2+ messages in thread
From: Joe Perches @ 2013-11-05 22:13 UTC (permalink / raw)
To: David S. Miller; +Cc: netdev, LKML
Just an unnecessary semicolon that should be removed...
Whitespace neatening of macro too.
Signed-off-by: Joe Perches <joe@perches.com>
---
include/net/udp.h | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/include/net/udp.h b/include/net/udp.h
index fe4ba9f..a24f0f3 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
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH net-next trivial] udp: Remove unnecessary semicolon from do{}while (0) macro
2013-11-05 22:13 [PATCH net-next trivial] udp: Remove unnecessary semicolon from do{}while (0) macro Joe Perches
@ 2013-11-07 7:14 ` David Miller
0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2013-11-07 7:14 UTC (permalink / raw)
To: joe; +Cc: netdev, linux-kernel
From: Joe Perches <joe@perches.com>
Date: Tue, 05 Nov 2013 14:13:47 -0800
> Just an unnecessary semicolon that should be removed...
>
> Whitespace neatening of macro too.
>
> Signed-off-by: Joe Perches <joe@perches.com>
Applied.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-11-07 7:14 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-11-05 22:13 [PATCH net-next trivial] udp: Remove unnecessary semicolon from do{}while (0) macro Joe Perches
2013-11-07 7:14 ` David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).