forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-31 f70575805708cabdedea7498aaa3f710fde4d920
kernel/drivers/scsi/FlashPoint.c
....@@ -1034,11 +1034,14 @@
10341034 temp6 >>= 1;
10351035 switch (temp & 0x3) {
10361036 case AUTO_RATE_20: /* Synchronous, 20 mega-transfers/second */
1037
- temp6 |= 0x8000; /* Fall through */
1037
+ temp6 |= 0x8000;
1038
+ fallthrough;
10381039 case AUTO_RATE_10: /* Synchronous, 10 mega-transfers/second */
1039
- temp5 |= 0x8000; /* Fall through */
1040
+ temp5 |= 0x8000;
1041
+ fallthrough;
10401042 case AUTO_RATE_05: /* Synchronous, 5 mega-transfers/second */
1041
- temp2 |= 0x8000; /* Fall through */
1043
+ temp2 |= 0x8000;
1044
+ fallthrough;
10421045 case AUTO_RATE_00: /* Asynchronous */
10431046 break;
10441047 }
....@@ -2944,7 +2947,7 @@
29442947 }
29452948
29462949 if (currSCCB->Lun == 0x00) {
2947
- if ((currSCCB->Sccb_scsistat == SELECT_SN_ST)) {
2950
+ if (currSCCB->Sccb_scsistat == SELECT_SN_ST) {
29482951
29492952 currTar_Info->TarStatus |=
29502953 (unsigned char)SYNC_SUPPORTED;
....@@ -2953,8 +2956,8 @@
29532956 ~EE_SYNC_MASK;
29542957 }
29552958
2956
- else if ((currSCCB->Sccb_scsistat ==
2957
- SELECT_WN_ST)) {
2959
+ else if (currSCCB->Sccb_scsistat ==
2960
+ SELECT_WN_ST) {
29582961
29592962 currTar_Info->TarStatus =
29602963 (currTar_Info->