mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-04 02:02:28 +09:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user