aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--src/device.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/device.c b/src/device.c
index 1504169..55adc60 100644
--- a/src/device.c
+++ b/src/device.c
@@ -48,9 +48,9 @@ static int open_peer(struct wireguard_peer *peer, void *data)
static int open(struct net_device *dev)
{
struct wireguard_device *wg = netdev_priv(dev);
- int rc = socket_init(wg);
- if (rc < 0)
- return rc;
+ int ret = socket_init(wg);
+ if (ret < 0)
+ return ret;
peer_for_each(wg, open_peer, NULL);
return 0;
}