decnet: remove unused variable from dn_output()
authorJesper Juhl <jj@chaosbits.net>
Sun, 5 Feb 2012 12:28:57 +0000 (12:28 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 5 Feb 2012 22:44:55 +0000 (17:44 -0500)
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>
net/decnet/dn_route.c

index f31ce72dca65517a144d61f233e086a2c9ebf481..80a3de4906d3d8bb4c598dde288e1decddf8e7c9 100644 (file)
@@ -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;