public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] crypt: ablkcipher: remove redundant NULL check
@ 2011-01-25 16:27 Davidlohr Bueso
  2011-01-25 20:39 ` David Miller
  0 siblings, 1 reply; 3+ messages in thread
From: Davidlohr Bueso @ 2011-01-25 16:27 UTC (permalink / raw)
  To: Herbert Xu, David Miller; +Cc: linux-crypto, LKML

From: Davidlohr Bueso <dave@gnu.org>

Signed-off-by: Davidlohr Bueso <dave@gnu.org>
---
 crypto/ablkcipher.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/crypto/ablkcipher.c b/crypto/ablkcipher.c
index a854df2..fdc67d3 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;
 }
-- 
1.7.1




^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-01-29  4:10 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-01-25 16:27 [PATCH] crypt: ablkcipher: remove redundant NULL check Davidlohr Bueso
2011-01-25 20:39 ` David Miller
2011-01-29  4:10   ` Herbert Xu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox