summaryrefslogtreecommitdiff
path: root/crypto/cipher.c
diff options
context:
space:
mode:
authorJesper Juhl <juhl-lkml@dif.dk>2005-07-07 00:51:00 +0400
committerDavid S. Miller <davem@davemloft.net>2005-07-07 00:51:00 +0400
commit8279dd748f9704b811e528b31304e2fab026abc5 (patch)
treed824994f48492dc3910ec3bf82d147cd8f796f20 /crypto/cipher.c
parentb4634484815e1879512a23e4f59eef648135c30a (diff)
downloadlinux-8279dd748f9704b811e528b31304e2fab026abc5.tar.xz
[CRYPTO] Don't check for NULL before kfree()
Checking a pointer for NULL before calling kfree() on it is redundant. This patch removes such checks from crypto/ Signed-off-by: Jesper Juhl <juhl-lkml@dif.dk> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'crypto/cipher.c')
-rw-r--r--crypto/cipher.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/crypto/cipher.c b/crypto/cipher.c
index f434ce7c2d0b..69264497b48c 100644
--- a/crypto/cipher.c
+++ b/crypto/cipher.c
@@ -336,6 +336,5 @@ out:
void crypto_exit_cipher_ops(struct crypto_tfm *tfm)
{
- if (tfm->crt_cipher.cit_iv)
- kfree(tfm->crt_cipher.cit_iv);
+ kfree(tfm->crt_cipher.cit_iv);
}