From: Jesper Juhl Date: Sun, 5 Feb 2012 12:28:57 +0000 (+0000) Subject: decnet: remove unused variable from dn_output() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=22b6a2eb902985961e6b41b923988a92a4523267;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git 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 Signed-off-by: David S. Miller --- 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) 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;