diff options
author | Horia Geantă <horia.geanta@nxp.com> | 2022-01-18 11:34:48 +0200 |
---|---|---|
committer | Jason Liu <jason.hui.liu@nxp.com> | 2022-01-26 17:43:58 +0800 |
commit | 78e806406d9dbeb169e1b9763718aa2381b72fc5 (patch) | |
tree | 187b767f8f0306a5402dd095b43823bdc302efd0 /crypto | |
parent | 382a2c19e952cfab61353bdc44fa6f0b790613d3 (diff) |
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: 922c229d9f78c ("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>
Diffstat (limited to 'crypto')
-rw-r--r-- | crypto/testmgr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/testmgr.c b/crypto/testmgr.c index 8b3d2aca1f6b..6babb9cd2f9e 100644 --- a/crypto/testmgr.c +++ b/crypto/testmgr.c @@ -2692,7 +2692,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); |