crypto: tls - fix logical-not-parentheses compile warning
Fix the following warning: crypto/testmgr.c: In function ‘__test_tls’: crypto/testmgr.c:2648:12: warning: logical not is only applied to the left hand side of comparison [-Wlogical-not-parentheses] if (!ret == template[i].fail) { ^~ Fixes: 8abdaaeda43 ("crypto: add support for TLS 1.0 record encryption") Signed-off-by: Iuliana Prodan <iuliana.prodan@nxp.com> Reviewed-by: Horia Geantă <horia.geanta@nxp.com> Reviewed-by: Valentin Ciocoi R?dulescu <valentin.ciocoi@nxp.com>5.4-rM2-2.2.x-imx-squashed
parent
92d77a4619
commit
d66c6d6af8
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue