summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2017-06-01 06:52:27 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2017-06-01 06:52:27 +0200
commitd9203aef7c530283d26c9e315702ac87f0afee04 (patch)
treee72407f9f6bf4c86498c455069e4569f2cc974b0 /src
parent0f6f08010228c2b4d3a38c66f8e9cfd1d23ad5f3 (diff)
device: do-while assignment style
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'src')
-rw-r--r--src/device.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/device.c b/src/device.c
index 802e90d..6dfefc0 100644
--- a/src/device.c
+++ b/src/device.c
@@ -186,7 +186,7 @@ static netdev_tx_t xmit(struct sk_buff *skb, struct net_device *dev)
skb_dst_drop(skb);
skb_queue_tail(&peer->tx_packet_queue, skb);
- } while ((skb = next));
+ } while ((skb = next) != NULL);
packet_send_queue(peer);
peer_put(peer);