diff options
author | Joshua I. James <joshua@cybercrimetech.com> | 2014-12-05 14:24:44 +0900 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2014-12-22 23:02:35 +1100 |
commit | e5d7afd024da27d19b1d966a87bc7ded4fc5f127 (patch) | |
tree | d265e322af3329763edc9f9e967e2410c42fdcd8 /crypto/aead.c | |
parent | 923ce9a0091bdcc86fdab434de2f4506c1176524 (diff) | |
download | linux-crypto-e5d7afd024da27d19b1d966a87bc7ded4fc5f127.tar.gz linux-crypto-e5d7afd024da27d19b1d966a87bc7ded4fc5f127.zip |
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 '')
-rw-r--r-- | crypto/aead.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/crypto/aead.c b/crypto/aead.c index 547491e3..22227107 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; } |