summaryrefslogtreecommitdiffstats
path: root/crypto
diff options
context:
space:
mode:
authorJoshua I. James <joshua@cybercrimetech.com>2014-12-05 14:24:44 +0900
committerHerbert Xu <herbert@gondor.apana.org.au>2014-12-22 23:02:35 +1100
commit4fad478ae0ff7bd27c853a085555317c0dc68704 (patch)
tree65a32da4c5f56b9f9d69a1b9c961d5e10be51d6f /crypto
parenta861afbc931b489b3b2362f8011cccd2a071ec37 (diff)
downloadlinux-4fad478ae0ff7bd27c853a085555317c0dc68704.tar.bz2
crypto: aead - fixed style error in aead.c
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>
Diffstat (limited to 'crypto')
-rw-r--r--crypto/aead.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/crypto/aead.c b/crypto/aead.c
index 547491e35c63..222271070b49 100644
--- 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;
}