summaryrefslogtreecommitdiffhomepage
path: root/src/main.c
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2017-10-05 04:33:37 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2017-10-05 20:50:56 +0200
commita199777a33e38424e0b33384b3df28d301623ed3 (patch)
tree6e931084700f87a302a5e708ab63775af1a6f69d /src/main.c
parentf7177006b9900bf838981e224d2c6129ad288b00 (diff)
queueing: move from ctx to cb
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/main.c b/src/main.c
index 7776d00..ea11858 100644
--- a/src/main.c
+++ b/src/main.c
@@ -30,13 +30,9 @@ static int __init mod_init(void)
#endif
noise_init();
- ret = crypt_ctx_cache_init();
- if (ret < 0)
- goto err_packet;
-
ret = device_init();
if (ret < 0)
- goto err_device;
+ goto err_packet;
ret = netlink_init();
if (ret < 0)
@@ -49,8 +45,6 @@ static int __init mod_init(void)
err_netlink:
device_uninit();
-err_device:
- crypt_ctx_cache_uninit();
err_packet:
return ret;
}
@@ -59,7 +53,6 @@ static void __exit mod_exit(void)
{
netlink_uninit();
device_uninit();
- crypt_ctx_cache_uninit();
pr_debug("WireGuard unloaded\n");
}