projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0b7e44d
)
crypto: cpt - simplify the return expression of cav_register_algs
author
Liu Shixin
<liushixin2@huawei.com>
Mon, 21 Sep 2020 08:24:28 +0000
(16:24 +0800)
committer
Herbert Xu
<herbert@gondor.apana.org.au>
Fri, 2 Oct 2020 08:02:10 +0000
(18:02 +1000)
Simplify the return expression.
Signed-off-by: Liu Shixin <liushixin2@huawei.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/cavium/cpt/cptvf_algs.c
patch
|
blob
|
history
diff --git
a/drivers/crypto/cavium/cpt/cptvf_algs.c
b/drivers/crypto/cavium/cpt/cptvf_algs.c
index
5af0dc2
..
ce3b91c
100644
(file)
--- a/
drivers/crypto/cavium/cpt/cptvf_algs.c
+++ b/
drivers/crypto/cavium/cpt/cptvf_algs.c
@@
-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)