diff mbox series

scsi: fas216: Use fallthrough pseudo-keyword

Message ID 20210518131823.2586-1-jj251510319013@gmail.com (mailing list archive)
State Accepted
Commit 86cfe4ad248ddf4ce7e4801374ef7f27f23711cf
Headers show
Series scsi: fas216: Use fallthrough pseudo-keyword | expand

Commit Message

Wei Ming Chen May 18, 2021, 1:18 p.m. UTC
Replace /* FALLTHROUGH */ 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: Wei Ming Chen <jj251510319013@gmail.com>
---
 drivers/scsi/arm/fas216.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Martin K. Petersen May 26, 2021, 4:07 a.m. UTC | #1
On Tue, 18 May 2021 21:18:23 +0800, Wei Ming Chen wrote:

> Replace /* FALLTHROUGH */ 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

Applied to 5.14/scsi-queue, thanks!

[1/1] scsi: fas216: Use fallthrough pseudo-keyword
      https://git.kernel.org/mkp/scsi/c/86cfe4ad248d
diff mbox series

Patch

diff --git a/drivers/scsi/arm/fas216.c b/drivers/scsi/arm/fas216.c
index 2e687ce60753..9402cdce7cc5 100644
--- a/drivers/scsi/arm/fas216.c
+++ b/drivers/scsi/arm/fas216.c
@@ -1479,7 +1479,7 @@  static void fas216_busservice_intr(FAS216_Info *info, unsigned int stat, unsigne
 
 		if (msgqueue_msglength(&info->scsi.msgs) > 1)
 			fas216_cmd(info, CMD_SETATN);
-		/*FALLTHROUGH*/
+		fallthrough;
 
 	/*
 	 * Any          -> Message Out