diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2018-10-08 22:54:32 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2018-10-09 01:57:47 +0200 |
commit | 1564e913bf02a924116497bdb8c1b994298c0465 (patch) | |
tree | bd28848929af527602fd0e8474cf50670221b9a0 /src/device.c | |
parent | 11d9063c3d2084a6eeb78aaaf5cadc9b8a2ff437 (diff) |
global: give if statements brackets and other cleanups
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'src/device.c')
-rw-r--r-- | src/device.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/device.c b/src/device.c index 63e89e1..3a14e33 100644 --- a/src/device.c +++ b/src/device.c @@ -91,6 +91,7 @@ static int wg_pm_notification(struct notifier_block *nb, unsigned long action, rcu_barrier_bh(); return 0; } + static struct notifier_block pm_notifier = { .notifier_call = wg_pm_notification }; #endif @@ -154,9 +155,9 @@ static netdev_tx_t wg_xmit(struct sk_buff *skb, struct net_device *dev) mtu = skb_dst(skb) ? dst_mtu(skb_dst(skb)) : dev->mtu; __skb_queue_head_init(&packets); - if (!skb_is_gso(skb)) + if (!skb_is_gso(skb)) { skb->next = NULL; - else { + } else { struct sk_buff *segs = skb_gso_segment(skb, 0); if (unlikely(IS_ERR(segs))) { |