Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

net: sched: Using NULL instead of plain integer

Fixes the following sparse warnings:

net/sched/cls_api.c:1101:43: warning: Using plain integer as NULL pointer
net/sched/cls_api.c:1492:75: warning: Using plain integer as NULL pointer

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

YueHaibing and committed by
David S. Miller
53189183 5c968f48

+2 -2
+2 -2
net/sched/cls_api.c
··· 1053 1053 for (tp = rtnl_dereference(chain->filter_chain); 1054 1054 tp; tp = rtnl_dereference(tp->next)) 1055 1055 tfilter_notify(net, oskb, n, tp, block, 1056 - q, parent, 0, event, false); 1056 + q, parent, NULL, event, false); 1057 1057 } 1058 1058 1059 1059 static int tc_new_tfilter(struct sk_buff *skb, struct nlmsghdr *n, ··· 1444 1444 memset(&cb->args[1], 0, 1445 1445 sizeof(cb->args) - sizeof(cb->args[0])); 1446 1446 if (cb->args[1] == 0) { 1447 - if (tcf_fill_node(net, skb, tp, block, q, parent, 0, 1447 + if (tcf_fill_node(net, skb, tp, block, q, parent, NULL, 1448 1448 NETLINK_CB(cb->skb).portid, 1449 1449 cb->nlh->nlmsg_seq, NLM_F_MULTI, 1450 1450 RTM_NEWTFILTER) <= 0)