projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
75674e3
)
tcindex_change: Remove redundant null check
author
Gaurav Singh
<gaurav1086@gmail.com>
Mon, 22 Jun 2020 02:24:30 +0000
(22:24 -0400)
committer
David 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
patch
|
blob
|
history
diff --git
a/net/sched/cls_tcindex.c
b/net/sched/cls_tcindex.c
index 61e95029c18f54f764df4f067a2530dbbd031798..78bec347b8b66f660e620dd715d0eb68f9bcd2d3 100644
(file)
--- 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;