Commit f74bf733 authored by Liu Shixin's avatar Liu Shixin Committed by Herbert Xu

crypto: cpt - simplify the return expression of cav_register_algs

Simplify the return expression.
Signed-off-by: default avatarLiu Shixin <liushixin2@huawei.com>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent 0b7e44d3
......@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment