LF-5410 crypto: testmgr - fix compilation warning

Fix the following compilation warning
that shows up due to implicit switch case fall-through.

crypto/testmgr.c: In function ‘__test_tls’:
crypto/testmgr.c:2693:7: warning: this statement may fall through [-Wimplicit-fallthrough=]
 2693 |    if (template[i].novrfy)
      |       ^
crypto/testmgr.c:2696:3: note: here
 2696 |   default:
      |   ^~~~~~~

Fixes: 922c229d9f ("crypto: add support for TLS 1.0 record encryption")
Link: https://www.kernel.org/doc/html/v5.7/process/deprecated.html?highlight=fallthrough#implicit-switch-case-fall-through
Signed-off-by: Horia Geantă <horia.geanta@nxp.com>
Reviewed-by: Dong Aisheng <aisheng.dong@nxp.com>
This commit is contained in:
Horia Geantă 2022-01-18 11:34:48 +02:00 committed by Dong Aisheng
parent 04c3c66b00
commit c485290bc7

View File

@ -2814,7 +2814,7 @@ static int __test_tls(struct crypto_aead *tfm, int enc,
/* verification failure was expected */
if (template[i].novrfy)
continue;
/* fall through */
fallthrough;
default:
pr_err("alg: tls%s: %s failed on test %d for %s: ret=%d\n",
d, e, i, algo, -ret);