diff --git a/crypto/testmgr.c b/crypto/testmgr.c index 7b938f2444d8..a8b7fb608e2e 100644 --- a/crypto/testmgr.c +++ b/crypto/testmgr.c @@ -2390,7 +2390,7 @@ static int __test_tls(struct crypto_aead *tfm, int enc, memcpy(key, template[i].key, template[i].klen); ret = crypto_aead_setkey(tfm, key, template[i].klen); - if (!ret == template[i].fail) { + if ((!ret) == template[i].fail) { pr_err("alg: tls%s: setkey failed on test %d for %s: flags=%x\n", d, i, algo, crypto_aead_get_flags(tfm)); goto out;