Skip to contentSkip to conversation

crypt: ablkcipher: remove redundant NULL check

PATCH In review Davidlohr Bueso 3 participants 3 messages Jan 25, 2011 – Jan 29, 2011 Crypto API

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 crypt: ablkcipher: remove redundant NULL check

From: Davidlohr Bueso <[email protected]>

---
 crypto/ablkcipher.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
crypto/ablkcipher.c +1 -2
index a854df2..fdc67d3 100644
@@ -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;
 }
Signature · 1 line
1.7.1