diff options
author | Gaurav Singh <gaurav1086@gmail.com> | 2020-06-19 15:24:13 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-06-20 21:29:27 -0700 |
commit | 8bf1539515920810b86cf1783dc433b1a25d31df (patch) | |
tree | 012ce74eb802a6c4f6f2a276d5e8059ed5a127e6 /net/sched | |
parent | c8f8a9f8e5e51bec320a5c2649e042b40630c564 (diff) |
Remove redundant skb null check
Remove the redundant null check for skb.
Signed-off-by: Gaurav Singh <gaurav1086@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sched')
-rw-r--r-- | net/sched/act_api.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/sched/act_api.c b/net/sched/act_api.c index 4c4466f18801..063d8aaf2900 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) && |