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 <blp@nicira.com>
Acked-by: Jesse Gross <jesse@nicira.com>
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);