[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1386680134-85452-7-git-send-email-yangyingliang@huawei.com>
Date: Tue, 10 Dec 2013 20:55:34 +0800
From: Yang Yingliang <yangyingliang@...wei.com>
To: <davem@...emloft.net>, <netdev@...r.kernel.org>
Subject: [PATCH net-next 6/6] net_sched: make macro be enclosed in parenthesis
Macros with complex values should be enclosed in parenthesis
Signed-off-by: Yang Yingliang <yangyingliang@...wei.com>
---
net/sched/em_meta.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/net/sched/em_meta.c b/net/sched/em_meta.c
index e5cef956..852cd62 100644
--- a/net/sched/em_meta.c
+++ b/net/sched/em_meta.c
@@ -272,10 +272,12 @@ META_COLLECTOR(int_rtiif)
**************************************************************************/
#define SKIP_NONLOCAL(skb) \
+({ \
if (unlikely(skb->sk == NULL)) { \
*err = -1; \
return; \
- }
+ } \
+})
META_COLLECTOR(int_sk_family)
{
--
1.8.0
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists