diff options
Diffstat (limited to 'crypto/algboss.c')
| -rw-r--r-- | crypto/algboss.c | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/crypto/algboss.c b/crypto/algboss.c index 6906f92aeac0..9908dd830c26 100644 --- a/crypto/algboss.c +++ b/crypto/algboss.c | |||
| @@ -280,29 +280,13 @@ static struct notifier_block cryptomgr_notifier = { | |||
| 280 | 280 | ||
| 281 | static int __init cryptomgr_init(void) | 281 | static int __init cryptomgr_init(void) |
| 282 | { | 282 | { |
| 283 | int err; | 283 | return crypto_register_notifier(&cryptomgr_notifier); |
| 284 | |||
| 285 | err = testmgr_init(); | ||
| 286 | if (err) | ||
| 287 | return err; | ||
| 288 | |||
| 289 | err = crypto_register_notifier(&cryptomgr_notifier); | ||
| 290 | if (err) | ||
| 291 | goto free_testmgr; | ||
| 292 | |||
| 293 | return 0; | ||
| 294 | |||
| 295 | free_testmgr: | ||
| 296 | testmgr_exit(); | ||
| 297 | return err; | ||
| 298 | } | 284 | } |
| 299 | 285 | ||
| 300 | static void __exit cryptomgr_exit(void) | 286 | static void __exit cryptomgr_exit(void) |
| 301 | { | 287 | { |
| 302 | int err = crypto_unregister_notifier(&cryptomgr_notifier); | 288 | int err = crypto_unregister_notifier(&cryptomgr_notifier); |
| 303 | BUG_ON(err); | 289 | BUG_ON(err); |
| 304 | |||
| 305 | testmgr_exit(); | ||
| 306 | } | 290 | } |
| 307 | 291 | ||
| 308 | subsys_initcall(cryptomgr_init); | 292 | subsys_initcall(cryptomgr_init); |
