From: Ben Pfaff Date: Mon, 24 Jan 2011 21:55:59 +0000 (-0800) Subject: datapath: Avoid sparse warning in compat header. X-Git-Tag: v1.1.0~455 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=3f1a322db440dbe2f4c1c1e7b89b4e003d0759c9;p=sliver-openvswitch.git 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 --- 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 b6bf7cb9e..bb9bc379e 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);