Merge tag 'sound-4.15-rc1' of ssh://gitolite.kernel.org/pub/scm/linux/kernel/git...
[sfrench/cifs-2.6.git] / drivers / crypto / inside-secure / safexcel_hash.c
index 3980f946874fa08b64288b5d8b04bcac9134a0ad..74feb622710147baf79d49c25a119be7e640ac7a 100644 (file)
@@ -308,10 +308,8 @@ unmap_cache:
                ctx->base.cache_sz = 0;
        }
 free_cache:
-       if (ctx->base.cache) {
-               kfree(ctx->base.cache);
-               ctx->base.cache = NULL;
-       }
+       kfree(ctx->base.cache);
+       ctx->base.cache = NULL;
 
 unlock:
        spin_unlock_bh(&priv->ring[ring].egress_lock);