netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] netlink: Unneeded local variable
@ 2008-07-01  9:24 Wang Chen
  2008-07-02  2:55 ` David Miller
  0 siblings, 1 reply; 2+ messages in thread
From: Wang Chen @ 2008-07-01  9:24 UTC (permalink / raw)
  To: David S. Miller; +Cc: NETDEV

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

Signed-off-by: Wang Chen <wangchen@cn.fujitsu.com>
---
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;



^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] netlink: Unneeded local variable
  2008-07-01  9:24 [PATCH] netlink: Unneeded local variable Wang Chen
@ 2008-07-02  2:55 ` David Miller
  0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2008-07-02  2:55 UTC (permalink / raw)
  To: wangchen; +Cc: netdev

From: Wang Chen <wangchen@cn.fujitsu.com>
Date: Tue, 01 Jul 2008 17:24:05 +0800

> We already have a variable, which has the same capability.
> 
> Signed-off-by: Wang Chen <wangchen@cn.fujitsu.com>

Applied to net-2.6, thanks!

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-07-02  2:55 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-01  9:24 [PATCH] netlink: Unneeded local variable Wang Chen
2008-07-02  2:55 ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).