summaryrefslogtreecommitdiffstats
path: root/net/sched/cls_tcindex.c
diff options
context:
space:
mode:
authorGaurav Singh <gaurav1086@gmail.com>2020-06-22 04:24:30 +0200
committerDavid S. Miller <davem@davemloft.net>2020-06-23 05:55:09 +0200
commitc5efcf17bf84b20dd76ca56de6dd99a40a89c4e3 (patch)
tree4e3963efa8028cbf5b2d6269958c0097d4cb877d /net/sched/cls_tcindex.c
parentnet: mtk_eth_soc: use resolved link config in mac_link_up() (diff)
downloadlinux-c5efcf17bf84b20dd76ca56de6dd99a40a89c4e3.tar.xz
linux-c5efcf17bf84b20dd76ca56de6dd99a40a89c4e3.zip
tcindex_change: Remove redundant null check
arg cannot be NULL since its already being dereferenced before. Remove the redundant NULL check. Signed-off-by: Gaurav Singh <gaurav1086@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sched/cls_tcindex.c')
-rw-r--r--net/sched/cls_tcindex.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/sched/cls_tcindex.c b/net/sched/cls_tcindex.c
index 61e95029c18f..78bec347b8b6 100644
--- a/net/sched/cls_tcindex.c
+++ b/net/sched/cls_tcindex.c
@@ -533,7 +533,7 @@ tcindex_change(struct net *net, struct sk_buff *in_skb,
pr_debug("tcindex_change(tp %p,handle 0x%08x,tca %p,arg %p),opt %p,"
"p %p,r %p,*arg %p\n",
- tp, handle, tca, arg, opt, p, r, arg ? *arg : NULL);
+ tp, handle, tca, arg, opt, p, r, *arg);
if (!opt)
return 0;