Skip to content

Commit

Permalink
tcindex_change: Remove redundant null check
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Gaurav Singh authored and David S. Miller committed Jun 23, 2020
1 parent 75674e3 commit c5efcf1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/sched/cls_tcindex.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit c5efcf1

Please sign in to comment.