treewide: remove redundant IS_ERR() before error code check
[linux/fpc-iii.git] / drivers / crypto / cavium / nitrox / nitrox_algs.c
blobd646ae5f29b0158ed4592e1dd9f7670bfe73df01
1 #include "nitrox_common.h"
3 int nitrox_crypto_register(void)
5 int err;
7 err = nitrox_register_skciphers();
8 if (err)
9 return err;
11 err = nitrox_register_aeads();
12 if (err) {
13 nitrox_unregister_skciphers();
14 return err;
17 return 0;
20 void nitrox_crypto_unregister(void)
22 nitrox_unregister_aeads();
23 nitrox_unregister_skciphers();