2011-01-25 16:27:45

by Davidlohr Bueso

[permalink] [raw]
Subject: [PATCH] crypt: ablkcipher: remove redundant NULL check

From: Davidlohr Bueso <[email protected]>

Signed-off-by: Davidlohr Bueso <[email protected]>
---
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


2011-01-25 20:39:50

by David Miller

[permalink] [raw]
Subject: Re: [PATCH] crypt: ablkcipher: remove redundant NULL check

From: Davidlohr Bueso <[email protected]>
Date: Tue, 25 Jan 2011 13:27:45 -0300

> From: Davidlohr Bueso <[email protected]>
>
> Signed-off-by: Davidlohr Bueso <[email protected]>

Acked-by: David S. Miller <[email protected]>

2011-01-29 04:10:10

by Herbert Xu

[permalink] [raw]
Subject: Re: [PATCH] crypt: ablkcipher: remove redundant NULL check

On Tue, Jan 25, 2011 at 12:39:50PM -0800, David Miller wrote:
> From: Davidlohr Bueso <[email protected]>
> Date: Tue, 25 Jan 2011 13:27:45 -0300
>
> > From: Davidlohr Bueso <[email protected]>
> >
> > Signed-off-by: Davidlohr Bueso <[email protected]>
>
> Acked-by: David S. Miller <[email protected]>

Patch applied. Thanks a lot!
--
Email: Herbert Xu <[email protected]>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt