Skip to content

Commit f74bf73

Browse files
Liu Shixinherbertx
authored andcommitted
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>
1 parent 0b7e44d commit f74bf73

1 file changed

Lines changed: 1 addition & 7 deletions

File tree

‎drivers/crypto/cavium/cpt/cptvf_algs.c‎

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -451,13 +451,7 @@ static struct skcipher_alg algs[] = { {
451451

452452
static inline int cav_register_algs(void)
453453
{
454-
int err = 0;
455-
456-
err = crypto_register_skciphers(algs, ARRAY_SIZE(algs));
457-
if (err)
458-
return err;
459-
460-
return 0;
454+
return crypto_register_skciphers(algs, ARRAY_SIZE(algs));
461455
}
462456

463457
static inline void cav_unregister_algs(void)

0 commit comments

Comments
 (0)