forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-10 37f49e37ab4cb5d0bc4c60eb5c6d4dd57db767bb
kernel/drivers/message/fusion/mptscsih.c
....@@ -784,6 +784,7 @@
784784 /*
785785 * Allow non-SAS & non-NEXUS_LOSS to drop into below code
786786 */
787
+ fallthrough;
787788
788789 case MPI_IOCSTATUS_SCSI_TASK_TERMINATED: /* 0x0048 */
789790 /* Linux handles an unsolicited DID_RESET better
....@@ -880,6 +881,7 @@
880881
881882 case MPI_IOCSTATUS_SCSI_DATA_OVERRUN: /* 0x0044 */
882883 scsi_set_resid(sc, 0);
884
+ fallthrough;
883885 case MPI_IOCSTATUS_SCSI_RECOVERED_ERROR: /* 0x0040 */
884886 case MPI_IOCSTATUS_SUCCESS: /* 0x0000 */
885887 sc->result = (DID_OK << 16) | scsi_status;
....@@ -1517,7 +1519,6 @@
15171519 int ii;
15181520 int retval;
15191521 MPT_ADAPTER *ioc = hd->ioc;
1520
- unsigned long timeleft;
15211522 u8 issue_hard_reset;
15221523 u32 ioc_raw_state;
15231524 unsigned long time_count;
....@@ -1615,7 +1616,7 @@
16151616 }
16161617 }
16171618
1618
- timeleft = wait_for_completion_timeout(&ioc->taskmgmt_cmds.done,
1619
+ wait_for_completion_timeout(&ioc->taskmgmt_cmds.done,
16191620 timeout*HZ);
16201621 if (!(ioc->taskmgmt_cmds.status & MPT_MGMT_STATUS_COMMAND_GOOD)) {
16211622 retval = FAILED;
....@@ -1935,7 +1936,7 @@
19351936 /* If our attempts to reset the host failed, then return a failed
19361937 * status. The host will be taken off line by the SCSI mid-layer.
19371938 */
1938
- retval = mpt_Soft_Hard_ResetHandler(ioc, CAN_SLEEP);
1939
+ retval = mpt_Soft_Hard_ResetHandler(ioc, CAN_SLEEP);
19391940 if (retval < 0)
19401941 status = FAILED;
19411942 else