From 1d40129dd7029e79115445129f96145263cfdbb1 Mon Sep 17 00:00:00 2001 From: Tao Huang Date: Mon, 30 Jan 2023 18:52:04 +0800 Subject: [PATCH] crypto: rockchip: Use fallthrough pseudo-keyword Replace /* fall through */ comment with pseudo-keyword macro fallthrough[1] [1] https://www.kernel.org/doc/html/latest/process/deprecated.html?highlight=fallthrough#implicit-switch-case-fall-through Signed-off-by: Tao Huang Change-Id: I717c6a69079e0fa502a9fd11665bb47e51893ff3 --- drivers/crypto/rockchip/rk_crypto_v1_skcipher.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/crypto/rockchip/rk_crypto_v1_skcipher.c b/drivers/crypto/rockchip/rk_crypto_v1_skcipher.c index a4c4a9a5d461..6a8402a68815 100644 --- a/drivers/crypto/rockchip/rk_crypto_v1_skcipher.c +++ b/drivers/crypto/rockchip/rk_crypto_v1_skcipher.c @@ -66,7 +66,7 @@ static int rk_get_bc(u32 algo, u32 mode, u32 *bc_val) switch (algo) { case CIPHER_ALGO_DES3_EDE: *bc_val |= RK_CRYPTO_TDES_SELECT; - /* fall through */ + fallthrough; case CIPHER_ALGO_DES: if (mode == CIPHER_MODE_ECB) *bc_val = 0;