]> git.karo-electronics.de Git - mv-sheeva.git/blobdiff - drivers/staging/pohmelfs/crypto.c
Merge branch 'for-paul-38-rebased' of git://gitorious.org/linux-omap-dss2/linux
[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);
 }