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

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
Loading
Loading
Loading
Loading
+1 −7
Original line number Diff line number Diff line
@@ -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)