Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

scsi: esas2r: esas2r_init: mark expected switch fall-throughs

In preparation to enabling -Wimplicit-fallthrough, mark switch cases where
we are expecting to fall through.

Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Acked-by: Bradley Grove <bgrove@atto.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>

authored by

Gustavo A. R. Silva and committed by
Martin K. Petersen
b9f57f58 211d62a8

+2 -1
+2 -1
drivers/scsi/esas2r/esas2r_init.c
··· 1241 1241 a->init_msg = ESAS2R_INIT_MSG_GET_INIT; 1242 1242 break; 1243 1243 } 1244 + /* fall through */ 1244 1245 1245 1246 case ESAS2R_INIT_MSG_GET_INIT: 1246 1247 if (msg == ESAS2R_INIT_MSG_GET_INIT) { ··· 1255 1254 esas2r_hdebug("FAILED"); 1256 1255 } 1257 1256 } 1258 - /* fall through */ 1257 + /* fall through */ 1259 1258 1260 1259 default: 1261 1260 rq->req_stat = RS_SUCCESS;