diff options
author | Jesper Juhl <jj@chaosbits.net> | 2012-02-05 07:28:57 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-02-05 17:44:55 -0500 |
commit | 22b6a2eb902985961e6b41b923988a92a4523267 (patch) | |
tree | 467e2fc813a17d6d37da3ce6985a3acc86c704e6 /net | |
parent | bce60806de882cf15ad3a80a51e9878863a8fced (diff) |
decnet: remove unused variable from dn_output()
The variable 'neigh' is assigned to, but otherwise completely
unused. So let's remove it.
Signed-off-by: Jesper Juhl <jj@chaosbits.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r-- | 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 f31ce72dca65..80a3de4906d3 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) | |||
724 | struct dn_route *rt = (struct dn_route *)dst; | 724 | struct dn_route *rt = (struct dn_route *)dst; |
725 | struct net_device *dev = dst->dev; | 725 | struct net_device *dev = dst->dev; |
726 | struct dn_skb_cb *cb = DN_SKB_CB(skb); | 726 | struct dn_skb_cb *cb = DN_SKB_CB(skb); |
727 | struct neighbour *neigh; | ||
728 | 727 | ||
729 | int err = -EINVAL; | 728 | int err = -EINVAL; |
730 | 729 | ||
731 | if ((neigh = dst_get_neighbour_noref(dst)) == NULL) | 730 | if (dst_get_neighbour_noref(dst) == NULL) |
732 | goto error; | 731 | goto error; |
733 | 732 | ||
734 | skb->dev = dev; | 733 | skb->dev = dev; |