net: wireless: rtl8723ds: Fix implicit-fallthrough warnings 80/319980/1
authorSeung-Woo Kim <sw0312.kim@samsung.com>
Wed, 6 Nov 2024 02:59:14 +0000 (11:59 +0900)
committerSeung-Woo Kim <sw0312.kim@samsung.com>
Wed, 6 Nov 2024 02:59:16 +0000 (11:59 +0900)
Fix implicit-fallthrough warnings with explicit fallthrough
statement.

Change-Id: Iebca5d6c71af8c3e1611e78539b12cf9a2911d57
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
drivers/net/wireless/rtl8723ds/core/rtw_mlme_ext.c
drivers/net/wireless/rtl8723ds/hal/hal_intf.c
drivers/net/wireless/rtl8723ds/os_dep/linux/ioctl_cfg80211.c

index bc228ecc9a3f1d14b55119858ecb5ed33c38ad08..8ab4b82f0d0c81c5e730114b5eef0a71729c11a7 100644 (file)
@@ -304,6 +304,7 @@ void rtw_txpwr_init_regd(struct rf_ctl_t *rfctl)
                if (rfctl->txpwr_lmt_name)
                        break;
                /* fall through */
+               fallthrough;
        default:
                rfctl->txpwr_lmt_name = txpwr_lmt_str(TXPWR_LMT_WW);
                RTW_PRINT("assign %s for default case\n", txpwr_lmt_str(TXPWR_LMT_WW));
@@ -1696,9 +1697,11 @@ void mgt_dispatcher(_adapter *padapter, union recv_frame *precv_frame)
                        ptable->func = &OnAuth;
                else
                        ptable->func = &OnAuthClient;
-       /* fall through */
+               /* fall through */
+               fallthrough;
        case WIFI_ASSOCREQ:
-       /* fall through */
+               /* fall through */
+               fallthrough;
        case WIFI_REASSOCREQ:
                _mgt_dispatcher(padapter, ptable, precv_frame);
                #ifdef CONFIG_HOSTAPD_MLME
index 1b909878237f749f1622a38b56767eca2bd04a1a..8bfea74b456080f052e3d18b621f4aa45738061d 100644 (file)
@@ -1370,6 +1370,7 @@ s32 c2h_handler(_adapter *adapter, u8 id, u8 seq, u8 plen, u8 *payload)
                sub_id = payload[0];
                /* no handle, goto default */
                /* fall through */
+               fallthrough;
 
        default:
                if (phydm_c2H_content_parsing(adapter_to_phydm(adapter), id, plen, payload) != TRUE)
index c9227a72ff69ed41b596ebb97e94e66acc138526..377527afb927bd1bbf1f01403abc3d4651b86f0d 100644 (file)
@@ -6798,6 +6798,7 @@ static void rtw_get_chbwoff_from_cfg80211_chan_def(
        case NL80211_CHAN_WIDTH_20_NOHT:
                *ht = 0;
                /* fall through */
+               fallthrough;
        case NL80211_CHAN_WIDTH_20:
                *bw = CHANNEL_WIDTH_20;
                *offset = HAL_PRIME_CHNL_OFFSET_DONT_CARE;