Skip to content

Commit

Permalink
decnet: remove unused variable from dn_output()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jesper Juhl authored and David S. Miller committed Feb 5, 2012
1 parent bce6080 commit 22b6a2e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions net/decnet/dn_route.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 22b6a2e

Please sign in to comment.