projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a861afb
)
crypto: aead - fixed style error in aead.c
author
Joshua I. James
<joshua@cybercrimetech.com>
Fri, 5 Dec 2014 05:24:44 +0000
(14:24 +0900)
committer
Herbert Xu
<herbert@gondor.apana.org.au>
Mon, 22 Dec 2014 12:02:35 +0000
(23:02 +1100)
Fixed style error identified by checkpatch.
ERROR: do not use assignment in if condition
+ if ((err = crypto_register_instance(tmpl, inst))) {
Signed-off-by: Joshua I. James <joshua@cybercrimetech.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/aead.c
patch
|
blob
|
history
diff --git
a/crypto/aead.c
b/crypto/aead.c
index 547491e35c63733f15ccb4697cf83109128125aa..222271070b49189bf2671acb1aee5a9ecc92ecc8 100644
(file)
--- a/
crypto/aead.c
+++ b/
crypto/aead.c
@@
-448,7
+448,8
@@
static int crypto_nivaead_default(struct crypto_alg *alg, u32 type, u32 mask)
if (IS_ERR(inst))
goto put_tmpl;
- if ((err = crypto_register_instance(tmpl, inst))) {
+ err = crypto_register_instance(tmpl, inst);
+ if (err) {
tmpl->free(inst);
goto put_tmpl;
}