Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 22b6a2eb authored by Jesper Juhl's avatar Jesper Juhl Committed by David S. Miller
Browse files

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: default avatarJesper Juhl <jj@chaosbits.net>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent bce60806
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -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;