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

scsi: aacraid: Mark expected switch fall-throughs

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

Also, a break statement is properly aligned.

Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Reviewed-by: Dave Carroll <david.carroll@microsemi.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>

authored by

Gustavo A. R. Silva and committed by
Martin K. Petersen
8d4d5b34 8837aa8b

+4 -1
+4 -1
drivers/scsi/aacraid/aachba.c
··· 2892 2892 !(dev->raw_io_64) || 2893 2893 ((scsicmd->cmnd[1] & 0x1f) != SAI_READ_CAPACITY_16)) 2894 2894 break; 2895 + /* fall through */ 2895 2896 case INQUIRY: 2896 2897 case READ_CAPACITY: 2897 2898 case TEST_UNIT_READY: ··· 2967 2966 /* Issue FIB to tell Firmware to flush it's cache */ 2968 2967 if ((aac_cache & 6) != 2) 2969 2968 return aac_synchronize(scsicmd); 2969 + /* fall through */ 2970 2970 case INQUIRY: 2971 2971 { 2972 2972 struct inquiry_data inq_data; ··· 3321 3319 min_t(size_t, 3322 3320 sizeof(dev->fsa_dev[cid].sense_data), 3323 3321 SCSI_SENSE_BUFFERSIZE)); 3324 - break; 3322 + break; 3325 3323 } 3324 + /* fall through */ 3326 3325 case RESERVE: 3327 3326 case RELEASE: 3328 3327 case REZERO_UNIT: