linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Net, decnet: remove unused variable from dn_output()
@ 2012-02-05 22:28 Jesper Juhl
  2012-02-05 22:46 ` David Miller
  0 siblings, 1 reply; 2+ messages in thread
From: Jesper Juhl @ 2012-02-05 22:28 UTC (permalink / raw)
  To: netdev
  Cc: linux-kernel, linux-decnet-user, Jeff Kirsher, David S. Miller,
	Steffen Klassert, Greg Rose, Paul Gortmaker, Steve Whitehouse,
	Eduardo Marcelo Serrat

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

Signed-off-by: Jesper Juhl <jj@chaosbits.net>
---
 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.


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

* Re: [PATCH] Net, decnet: remove unused variable from dn_output()
  2012-02-05 22:28 [PATCH] Net, decnet: remove unused variable from dn_output() Jesper Juhl
@ 2012-02-05 22:46 ` David Miller
  0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2012-02-05 22:46 UTC (permalink / raw)
  To: jj
  Cc: netdev, linux-kernel, linux-decnet-user, jeffrey.t.kirsher,
	steffen.klassert, gregory.v.rose, paul.gortmaker, SteveW,
	emserrat

From: Jesper Juhl <jj@chaosbits.net>
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 <jj@chaosbits.net>

Applied.

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

end of thread, other threads:[~2012-02-05 22:46 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-02-05 22:28 [PATCH] Net, decnet: remove unused variable from dn_output() Jesper Juhl
2012-02-05 22:46 ` 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).