projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c8f8a9f
)
Remove redundant skb null check
author
Gaurav Singh
<gaurav1086@gmail.com>
Fri, 19 Jun 2020 19:24:13 +0000
(15:24 -0400)
committer
David S. Miller
<davem@davemloft.net>
Sun, 21 Jun 2020 04:29:27 +0000
(21:29 -0700)
Remove the redundant null check for skb.
Signed-off-by: Gaurav Singh <gaurav1086@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/act_api.c
patch
|
blob
|
history
diff --git
a/net/sched/act_api.c
b/net/sched/act_api.c
index 4c4466f18801db0c8d2928860668f30c01425735..063d8aaf2900613bdf79008af1913feb42ae596d 100644
(file)
--- 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) &&