summaryrefslogtreecommitdiff
path: root/crypto
diff options
context:
space:
mode:
authorIuliana Prodan <iuliana.prodan@nxp.com>2020-03-23 15:23:04 +0000
committerHoria Geantă <horia.geanta@nxp.com>2020-04-07 11:13:12 +0300
commitd66c6d6af88f0d0a8cbbbbb6c53659988aafaffd (patch)
treebd36722aa723545caf1b97efcef9b30b59409d87 /crypto
parent92d77a4619159332f7025dfcfd024cae462a8466 (diff)
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>
Diffstat (limited to 'crypto')
-rw-r--r--crypto/testmgr.c2
1 files changed, 1 insertions, 1 deletions
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;