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:
Liu Shixin 2020-09-21 16:24:28 +08:00 committed by Herbert Xu
parent 0b7e44d39c
commit f74bf733fe
1 changed files with 1 additions and 7 deletions

View File

@ -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)