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:
parent
bce60806de
commit
22b6a2eb90
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue