From: Gaurav Singh Date: Fri, 19 Jun 2020 19:24:13 +0000 (-0400) Subject: Remove redundant skb null check X-Git-Tag: v5.10.7~1943^2~465 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8bf1539515920810b86cf1783dc433b1a25d31df;p=platform%2Fkernel%2Flinux-rpi.git Remove redundant skb null check Remove the redundant null check for skb. Signed-off-by: Gaurav Singh Signed-off-by: David S. Miller --- diff --git a/net/sched/act_api.c b/net/sched/act_api.c index 4c4466f1..063d8aa 100644 --- a/net/sched/act_api.c +++ b/net/sched/act_api.c @@ -1473,7 +1473,7 @@ static int tc_ctl_action(struct sk_buff *skb, struct nlmsghdr *n, { struct net *net = sock_net(skb->sk); struct nlattr *tca[TCA_ROOT_MAX + 1]; - u32 portid = skb ? NETLINK_CB(skb).portid : 0; + u32 portid = NETLINK_CB(skb).portid; int ret = 0, ovr = 0; if ((n->nlmsg_type != RTM_GETACTION) &&