[PATCH] Net, decnet: remove unused variable from dn_output()

Subsystems: networking [general], the rest

STALE5304d

2 messages, 2 authors, 2012-02-05 · open the first message on its own page

[PATCH] Net, decnet: remove unused variable from dn_output()

From: Jesper Juhl <hidden>
Date: 2012-02-05 22:28:31

The variable 'neigh' is assigned to, but otherwise completely
unused. So let's remove it.

Signed-off-by: Jesper Juhl <redacted>
---
 net/decnet/dn_route.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/net/decnet/dn_route.c b/net/decnet/dn_route.c
index f31ce72..80a3de4 100644
--- a/net/decnet/dn_route.c
+++ b/net/decnet/dn_route.c
@@ -724,11 +724,10 @@ static int dn_output(struct sk_buff *skb)
 	struct dn_route *rt = (struct dn_route *)dst;
 	struct net_device *dev = dst->dev;
 	struct dn_skb_cb *cb = DN_SKB_CB(skb);
-	struct neighbour *neigh;
 
 	int err = -EINVAL;
 
-	if ((neigh = dst_get_neighbour_noref(dst)) == NULL)
+	if (dst_get_neighbour_noref(dst) == NULL)
 		goto error;
 
 	skb->dev = dev;
-- 
1.7.9


-- 
Jesper Juhl <jj@chaosbits.net>       http://www.chaosbits.net/
Don't top-post http://www.catb.org/jargon/html/T/top-post.html
Plain text mails only, please.

Re: [PATCH] Net, decnet: remove unused variable from dn_output()

From: David Miller <davem@davemloft.net>
Date: 2012-02-05 22:46:48

From: Jesper Juhl <redacted>
Date: Sun, 5 Feb 2012 23:28:57 +0100 (CET)
The variable 'neigh' is assigned to, but otherwise completely
unused. So let's remove it.

Signed-off-by: Jesper Juhl <redacted>
Applied.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help