forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
kernel/drivers/infiniband/hw/hfi1/platform.c
....@@ -634,7 +634,7 @@
634634 u32 config_data, const char *message)
635635 {
636636 u8 i;
637
- int ret = HCMD_SUCCESS;
637
+ int ret;
638638
639639 for (i = 0; i < 4; i++) {
640640 ret = load_8051_config(ppd->dd, field_id, i, config_data);
....@@ -668,8 +668,8 @@
668668
669669 /* active optical cables only */
670670 switch ((cache[QSFP_MOD_TECH_OFFS] & 0xF0) >> 4) {
671
- case 0x0 ... 0x9: /* fallthrough */
672
- case 0xC: /* fallthrough */
671
+ case 0x0 ... 0x9: fallthrough;
672
+ case 0xC: fallthrough;
673673 case 0xE:
674674 /* active AOC */
675675 power_class = get_qsfp_power_class(cache[QSFP_MOD_PWR_OFFS]);
....@@ -899,8 +899,8 @@
899899
900900 *ptr_tuning_method = OPA_PASSIVE_TUNING;
901901 break;
902
- case 0x0 ... 0x9: /* fallthrough */
903
- case 0xC: /* fallthrough */
902
+ case 0x0 ... 0x9: fallthrough;
903
+ case 0xC: fallthrough;
904904 case 0xE:
905905 ret = tune_active_qsfp(ppd, ptr_tx_preset, ptr_rx_preset,
906906 ptr_total_atten);
....@@ -909,7 +909,7 @@
909909
910910 *ptr_tuning_method = OPA_ACTIVE_TUNING;
911911 break;
912
- case 0xD: /* fallthrough */
912
+ case 0xD: fallthrough;
913913 case 0xF:
914914 default:
915915 dd_dev_warn(ppd->dd, "%s: Unknown/unsupported cable\n",