Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Liu Shixin and committed by
Herbert Xu
f74bf733 0b7e44d3

+1 -7
+1 -7
drivers/crypto/cavium/cpt/cptvf_algs.c
··· 451 451 452 452 static inline int cav_register_algs(void) 453 453 { 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)); 461 455 } 462 456 463 457 static inline void cav_unregister_algs(void)