Merge git://git.kernel.org/pub/scm/linux/kernel/git/pkl/squashfs-linus
[linux-drm-fsl-dcu.git] / crypto / algapi.c
index 76fae27ed01cb9834049e2b641d9e561ef0844e5..c3cf1a69a47a8dcaa57e62410c9823ee4e2d045b 100644 (file)
@@ -544,7 +544,7 @@ int crypto_init_spawn2(struct crypto_spawn *spawn, struct crypto_alg *alg,
 {
        int err = -EINVAL;
 
-       if (frontend && (alg->cra_flags ^ frontend->type) & frontend->maskset)
+       if ((alg->cra_flags ^ frontend->type) & frontend->maskset)
                goto out;
 
        spawn->frontend = frontend;