Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8d4d5b34 authored by Gustavo A. R. Silva's avatar Gustavo A. R. Silva Committed by Martin K. Petersen
Browse files

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: default avatarGustavo A. R. Silva <gustavo@embeddedor.com>
Reviewed-by: default avatarDave Carroll <david.carroll@microsemi.com>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent 8837aa8b
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -2892,6 +2892,7 @@ int aac_scsi_cmd(struct scsi_cmnd * scsicmd)
					    !(dev->raw_io_64) ||
					    ((scsicmd->cmnd[1] & 0x1f) != SAI_READ_CAPACITY_16))
						break;
					/* fall through */
				case INQUIRY:
				case READ_CAPACITY:
				case TEST_UNIT_READY:
@@ -2966,6 +2967,7 @@ int aac_scsi_cmd(struct scsi_cmnd * scsicmd)
		/* Issue FIB to tell Firmware to flush it's cache */
		if ((aac_cache & 6) != 2)
			return aac_synchronize(scsicmd);
		/* fall through */
	case INQUIRY:
	{
		struct inquiry_data inq_data;
@@ -3321,6 +3323,7 @@ int aac_scsi_cmd(struct scsi_cmnd * scsicmd)
				     SCSI_SENSE_BUFFERSIZE));
			break;
		}
		/* fall through */
	case RESERVE:
	case RELEASE:
	case REZERO_UNIT: