crypto: cpt - simplify the return expression of cav_register_algs
Simplify the return expression. Signed-off-by: Liu Shixin <liushixin2@huawei.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
This commit is contained in:
parent
0b7e44d39c
commit
f74bf733fe
|
@ -451,13 +451,7 @@ static struct skcipher_alg algs[] = { {
|
|||
|
||||
static inline int cav_register_algs(void)
|
||||
{
|
||||
int err = 0;
|
||||
|
||||
err = crypto_register_skciphers(algs, ARRAY_SIZE(algs));
|
||||
if (err)
|
||||
return err;
|
||||
|
||||
return 0;
|
||||
return crypto_register_skciphers(algs, ARRAY_SIZE(algs));
|
||||
}
|
||||
|
||||
static inline void cav_unregister_algs(void)
|
||||
|
|
Loading…
Reference in New Issue