Skip to contentSkip to conversation

netlink: Unneeded local variable

PATCH Applied Wang Chen 2 participants 2 messages Jul 1, 2008 – Jul 2, 2008

Subsystems (2)
lore
Share & tools
lore

Wang Chen

author
#0 lore raw

PATCH 1/1 netlink: Unneeded local variable

We already have a variable, which has the same capability.

---

net/netlink/af_netlink.c +1 -1
index 9b97f80..349aba1 100644
@@ -886,7 +886,7 @@ retry:
 		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;