build/patch/kernel/archive/sunxi-6.1/patches.megous/8723cs-Fix-compile-warnings.patch

64 lines
2.4 KiB
Diff
Raw Normal View History

From 125b16b1e216d036865ccf71fe19b2f54102915b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ond=C5=99ej=20Jirman?= <megi@xff.cz>
Date: Mon, 13 Sep 2021 14:37:39 +0200
Subject: [PATCH 132/389] 8723cs: Fix compile warnings
Signed-off-by: Ondrej Jirman <megi@xff.cz>
---
drivers/staging/rtl8723cs/core/rtw_mlme_ext.c | 4 ++--
drivers/staging/rtl8723cs/hal/hal_intf.c | 2 +-
drivers/staging/rtl8723cs/os_dep/linux/ioctl_cfg80211.c | 2 +-
3 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/drivers/staging/rtl8723cs/core/rtw_mlme_ext.c b/drivers/staging/rtl8723cs/core/rtw_mlme_ext.c
index 07aab079179b..11da273bee38 100644
--- a/drivers/staging/rtl8723cs/core/rtw_mlme_ext.c
+++ b/drivers/staging/rtl8723cs/core/rtw_mlme_ext.c
@@ -298,7 +298,7 @@ void rtw_txpwr_init_regd(struct rf_ctl_t *rfctl)
);
if (rfctl->regd_name)
break;
- /* fall through */
+ fallthrough;
default:
rfctl->regd_name = regd_str(TXPWR_LMT_WW);
RTW_PRINT("assign %s for default case\n", regd_str(TXPWR_LMT_WW));
@@ -1665,7 +1665,7 @@ void mgt_dispatcher(_adapter *padapter, union recv_frame *precv_frame)
ptable->func = &OnAuth;
else
ptable->func = &OnAuthClient;
- /* fall through */
+ fallthrough;
case WIFI_ASSOCREQ:
case WIFI_REASSOCREQ:
_mgt_dispatcher(padapter, ptable, precv_frame);
diff --git a/drivers/staging/rtl8723cs/hal/hal_intf.c b/drivers/staging/rtl8723cs/hal/hal_intf.c
index 762d1ac08fcc..c39b37b773a7 100644
--- a/drivers/staging/rtl8723cs/hal/hal_intf.c
+++ b/drivers/staging/rtl8723cs/hal/hal_intf.c
@@ -1370,7 +1370,7 @@ s32 c2h_handler(_adapter *adapter, u8 id, u8 seq, u8 plen, u8 *payload)
case C2H_EXTEND:
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)
diff --git a/drivers/staging/rtl8723cs/os_dep/linux/ioctl_cfg80211.c b/drivers/staging/rtl8723cs/os_dep/linux/ioctl_cfg80211.c
index 54424a82ce19..ca999734af96 100644
--- a/drivers/staging/rtl8723cs/os_dep/linux/ioctl_cfg80211.c
+++ b/drivers/staging/rtl8723cs/os_dep/linux/ioctl_cfg80211.c
@@ -6767,7 +6767,7 @@ static void rtw_get_chbwoff_from_cfg80211_chan_def(
switch (chandef->width) {
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;
--
2.35.3