mirror of
https://gitee.com/bianbu-linux/linux-6.6
synced 2025-04-24 14:07:52 -04:00
dcb_doit: remove redundant skb check
skb cannot be NULL here since its already being accessed before: sock_net(skb->sk). Remove the redundant null check. Signed-off-by: Gaurav Singh <gaurav1086@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
6f39345768
commit
0cc55e694e
1 changed files with 1 additions and 1 deletions
|
@ -1736,7 +1736,7 @@ static int dcb_doit(struct sk_buff *skb, struct nlmsghdr *nlh,
|
|||
struct net_device *netdev;
|
||||
struct dcbmsg *dcb = nlmsg_data(nlh);
|
||||
struct nlattr *tb[DCB_ATTR_MAX + 1];
|
||||
u32 portid = skb ? NETLINK_CB(skb).portid : 0;
|
||||
u32 portid = NETLINK_CB(skb).portid;
|
||||
int ret = -EINVAL;
|
||||
struct sk_buff *reply_skb;
|
||||
struct nlmsghdr *reply_nlh = NULL;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue