From 3f1a322db440dbe2f4c1c1e7b89b4e003d0759c9 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Mon, 24 Jan 2011 13:55:59 -0800 Subject: [PATCH] datapath: Avoid sparse warning in compat header. Without this change, sparse complains: datapath/linux-2.6/compat-2.6/include/linux/rtnetlink.h:12:9: warning: Using plain integer as NULL pointer at least on kernels old enough to need this compat code anyway. Might as well suppress it, since it is easy. Signed-off-by: Ben Pfaff Acked-by: Jesse Gross --- datapath/linux-2.6/compat-2.6/include/linux/rtnetlink.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datapath/linux-2.6/compat-2.6/include/linux/rtnetlink.h b/datapath/linux-2.6/compat-2.6/include/linux/rtnetlink.h index b6bf7cb9..bb9bc379 100644 --- a/datapath/linux-2.6/compat-2.6/include/linux/rtnetlink.h +++ b/datapath/linux-2.6/compat-2.6/include/linux/rtnetlink.h @@ -9,7 +9,7 @@ static inline void rtnl_notify(struct sk_buff *skb, u32 pid, u32 group, struct nlmsghdr *nlh, gfp_t flags) { - BUG_ON(nlh); /* not implemented */ + BUG_ON(nlh != NULL); /* not implemented */ if (group) { /* errors reported via destination sk->sk_err */ nlmsg_multicast(rtnl, skb, 0, group); -- 2.30.2