tcindex_change: Remove redundant null check
authorGaurav Singh <gaurav1086@gmail.com>
Mon, 22 Jun 2020 02:24:30 +0000 (22:24 -0400)
committerDavid S. Miller <davem@davemloft.net>
Tue, 23 Jun 2020 03:55:09 +0000 (20:55 -0700)
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>
net/sched/cls_tcindex.c

index 61e9502..78bec34 100644 (file)
@@ -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;