aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/device.c
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2018-10-08 22:54:32 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2018-10-09 01:57:47 +0200
commitf985de2c5acc9a9086829d52237fce0d2a663277 (patch)
tree28ce187bcd7aad1e03ab92f7ec9695d343f44973 /src/device.c
parentmain: change module description (diff)
downloadwireguard-monolithic-historical-f985de2c5acc9a9086829d52237fce0d2a663277.tar.xz
wireguard-monolithic-historical-f985de2c5acc9a9086829d52237fce0d2a663277.zip
global: give if statements brackets and other cleanups
Diffstat (limited to 'src/device.c')
-rw-r--r--src/device.c5
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))) {