]> git.karo-electronics.de Git - mv-sheeva.git/blobdiff - drivers/staging/pohmelfs/crypto.c
Merge tag 'v2.6.38' of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6
[mv-sheeva.git] / drivers / staging / pohmelfs / crypto.c
index 2fdb3e01460df049b40ed057c08b1732f6a6aa17..6540864216c8fd1914544f5d988aef8082742250 100644 (file)
@@ -130,10 +130,8 @@ err_out_exit:
 
 void pohmelfs_crypto_engine_exit(struct pohmelfs_crypto_engine *e)
 {
-       if (e->hash)
-               crypto_free_hash(e->hash);
-       if (e->cipher)
-               crypto_free_ablkcipher(e->cipher);
+       crypto_free_hash(e->hash);
+       crypto_free_ablkcipher(e->cipher);
        kfree(e->data);
 }