From: Gaurav Singh Date: Mon, 22 Jun 2020 02:24:30 +0000 (-0400) Subject: tcindex_change: Remove redundant null check X-Git-Tag: v5.9-rc1~133^2~452 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c5efcf17bf84b20dd76ca56de6dd99a40a89c4e3;p=thirdparty%2Flinux.git 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 Signed-off-by: David S. Miller --- diff --git a/net/sched/cls_tcindex.c b/net/sched/cls_tcindex.c index 61e95029c18f5..78bec347b8b66 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;