Skip to content

Commit 74e716f

Browse files
GustavoARSilvamartinkpetersen
authored andcommitted
scsi: megaraid_sas_fusion: Mark expected switch fall-through
In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through. Notice that, in this particular case, I replaced "Fall thru" with a "Fall through" annotation and added a dash as a token in order to separate the "Fall through" annotation from the rest of the comment on the same line, which is what GCC is expecting to find. Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com> Acked-by: Sumit Saxena <sumit.saxena@broadcom.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
1 parent 8d07f7d commit 74e716f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/scsi/megaraid/megaraid_sas_fusion.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3453,7 +3453,7 @@ complete_cmd_fusion(struct megasas_instance *instance, u32 MSIxIndex)
34533453
atomic_dec(&lbinfo->scsi_pending_cmds[cmd_fusion->pd_r1_lb]);
34543454
cmd_fusion->scmd->SCp.Status &= ~MEGASAS_LOAD_BALANCE_FLAG;
34553455
}
3456-
//Fall thru and complete IO
3456+
/* Fall through - and complete IO */
34573457
case MEGASAS_MPI2_FUNCTION_LD_IO_REQUEST: /* LD-IO Path */
34583458
atomic_dec(&instance->fw_outstanding);
34593459
if (cmd_fusion->r1_alt_dev_handle == MR_DEVHANDLE_INVALID) {

0 commit comments

Comments
 (0)