summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavidlohr Bueso <dave@gnu.org>2011-01-29 15:09:43 +1100
committerHerbert Xu <herbert@gondor.apana.org.au>2011-01-29 15:09:43 +1100
commit33c7c0fb20dbbaca67fcf362f875758ba312f58d (patch)
tree8e3be40b6a4caa484c15befbea2cb135bae2ef4f
parent5efb94ee144c1c7290652495a0f4f29cae845a62 (diff)
downloadlinux-stable-33c7c0fb20dbbaca67fcf362f875758ba312f58d.tar.gz
linux-stable-33c7c0fb20dbbaca67fcf362f875758ba312f58d.tar.bz2
linux-stable-33c7c0fb20dbbaca67fcf362f875758ba312f58d.zip
crypto: skcipher - remove redundant NULL check
Signed-off-by: Davidlohr Bueso <dave@gnu.org> Acked-by: David S. Miller <davem@davemloft.net> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
-rw-r--r--crypto/ablkcipher.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/crypto/ablkcipher.c b/crypto/ablkcipher.c
index a854df2a5a4b..fdc67d38660b 100644
--- a/crypto/ablkcipher.c
+++ b/crypto/ablkcipher.c
@@ -141,8 +141,7 @@ err:
if (walk->iv != req->info)
memcpy(req->info, walk->iv, tfm->crt_ablkcipher.ivsize);
- if (walk->iv_buffer)
- kfree(walk->iv_buffer);
+ kfree(walk->iv_buffer);
return err;
}