From f985de2c5acc9a9086829d52237fce0d2a663277 Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Mon, 8 Oct 2018 22:54:32 +0200 Subject: global: give if statements brackets and other cleanups --- src/device.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/device.c') 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))) { -- cgit v1.2.3-59-g8ed1b