aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/device.c
diff options
context:
space:
mode:
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))) {