Skip to contentSkip to conversation

tcindex_change: Remove redundant null check

PATCH Applied Gaurav Singh 2 participants 2 messages Jun 22, 2020 – Jun 23, 2020

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tcindex_change: Remove redundant null check

arg cannot be NULL since its already being dereferenced before. Remove the redundant NULL check.

---
 net/sched/cls_tcindex.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
net/sched/cls_tcindex.c +1 -1
index 61e95029c18f..78bec347b8b6 100644
@@ -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;
Signature · 1 line
2.17.1