Subject: [PATCH] netlink: Unneeded local variable

From: Wang Chen <[email-masked]>
Date: Tue, 01 Jul 2008 17:24:05 +0800

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

Signed-off-by: Wang Chen <[email-masked]>
---
diff --git a/net/netlink/af_netlink.c b/net/netlink/af_netlink.c
index 9b97f80..349aba1 100644
--- a/net/netlink/af_netlink.c
+++ b/net/netlink/af_netlink.c
@@ -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;