diff options
Diffstat (limited to 'cryptodev_main.c')
-rw-r--r-- | cryptodev_main.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/cryptodev_main.c b/cryptodev_main.c index d932ea9..4b86e84 100644 --- a/cryptodev_main.c +++ b/cryptodev_main.c @@ -433,12 +433,11 @@ static int __init cryptodev_register(void) { int rc; - ncr_limits_init(); ncr_master_key_reset(); rc = proto_register(&alg_proto, 1); if (unlikely(rc != 0)) - goto err_limits; + goto err; rc = sock_register(&alg_pf); if (unlikely(rc != 0)) @@ -448,8 +447,7 @@ static int __init cryptodev_register(void) err_proto: proto_unregister(&alg_proto); -err_limits: - ncr_limits_deinit(); +err: printk(KERN_ERR PFX "registration of /dev/crypto failed\n"); return rc; } @@ -458,7 +456,6 @@ static void __exit cryptodev_deregister(void) { sock_unregister(PF_ALG); proto_unregister(&alg_proto); - ncr_limits_deinit(); } /* ====== Module init/exit ====== */ |