crypto: skcipher - remove redundant NULL check
Davidlohr Bueso [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 a854df2..fdc67d3 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;
 }