mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-18 10:13:57 +08:00
ipv6: cleanup: remove unneeded null check
We dereference "sk" unconditionally elsewhere in the function.
This was left over from: b30bd282
"ip6_xmit: remove unnecessary NULL
ptr check". According to that commit message, "the sk argument to
ip6_xmit is never NULL nowadays since the skb->priority assigment
expects a valid socket."
Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
4b021628be
commit
83d7eb2979
@ -218,7 +218,6 @@ int ip6_xmit(struct sock *sk, struct sk_buff *skb, struct flowi *fl,
|
||||
}
|
||||
kfree_skb(skb);
|
||||
skb = skb2;
|
||||
if (sk)
|
||||
skb_set_owner_w(skb, sk);
|
||||
}
|
||||
if (opt->opt_flen)
|
||||
|
Loading…
Reference in New Issue
Block a user