From 6e71b31d5116a9260be12e855672196bcec618cb Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Tue, 15 Nov 2016 20:19:20 +0100 Subject: various: nits from willy Signed-off-by: Jason A. Donenfeld --- src/device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/device.c') diff --git a/src/device.c b/src/device.c index 564d09b..5a294ec 100644 --- a/src/device.c +++ b/src/device.c @@ -121,8 +121,8 @@ static netdev_tx_t xmit(struct sk_buff *skb, struct net_device *dev) read_unlock_bh(&peer->endpoint_lock); if (unlikely(ret)) { net_dbg_ratelimited("No valid endpoint has been configured or discovered for device\n"); - peer_put(peer); skb_unsendable(skb, dev); + peer_put(peer); return -EHOSTUNREACH; } -- cgit v1.2.3