From: Davidlohr Bueso Date: Sat, 29 Jan 2011 04:09:43 +0000 (+1100) Subject: crypto: skcipher - remove redundant NULL check X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=33c7c0fb20dbbaca67fcf362f875758ba312f58d;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git crypto: skcipher - remove redundant NULL check Signed-off-by: Davidlohr Bueso Acked-by: David S. Miller Signed-off-by: Herbert Xu --- 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; }