mirror of
https://github.com/torvalds/linux.git
synced 2026-05-22 06:01:53 +02:00
netlink: Unneeded local variable
We already have a variable, which has the same capability. Signed-off-by: Wang Chen <wangchen@cn.fujitsu.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
a4aebb83cf
commit
8487460720
|
|
@ -886,7 +886,7 @@ int netlink_unicast(struct sock *ssk, struct sk_buff *skb,
|
|||
return netlink_unicast_kernel(sk, skb);
|
||||
|
||||
if (sk_filter(sk, skb)) {
|
||||
int err = skb->len;
|
||||
err = skb->len;
|
||||
kfree_skb(skb);
|
||||
sock_put(sk);
|
||||
return err;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user