crypto: skcipher - remove redundant NULL check
authorDavidlohr Bueso <dave@gnu.org>
Sat, 29 Jan 2011 04:09:43 +0000 (15:09 +1100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Sat, 29 Jan 2011 04:09:43 +0000 (15:09 +1100)
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>
crypto/ablkcipher.c

index a854df2a5a4b860b223d6ad49f45255b0678e970..fdc67d38660bc08269697c50b3424fc85059e1e8 100644 (file)
@@ -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;
 }