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>
This commit is contained in:
Jesper Juhl 2012-02-05 12:28:57 +00:00 committed by David S. Miller
parent bce60806de
commit 22b6a2eb90
1 changed files with 1 additions and 2 deletions

View File

@ -724,11 +724,10 @@ static int dn_output(struct sk_buff *skb)
struct dn_route *rt = (struct dn_route *)dst; struct dn_route *rt = (struct dn_route *)dst;
struct net_device *dev = dst->dev; struct net_device *dev = dst->dev;
struct dn_skb_cb *cb = DN_SKB_CB(skb); struct dn_skb_cb *cb = DN_SKB_CB(skb);
struct neighbour *neigh;
int err = -EINVAL; int err = -EINVAL;
if ((neigh = dst_get_neighbour_noref(dst)) == NULL) if (dst_get_neighbour_noref(dst) == NULL)
goto error; goto error;
skb->dev = dev; skb->dev = dev;