From: Philipp Hortmann <philipp.g.hortmann@gmail.com>
To: Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org
Subject: [PATCH 02/14] staging: rtl8723bs: Remove switch(type) as type is constant
Date: Sun, 23 Jun 2024 19:56:56 +0200 [thread overview]
Message-ID: <1e3982de9a03e75931bf7977fca83c5402084aa4.1719155208.git.philipp.g.hortmann@gmail.com> (raw)
In-Reply-To: <cover.1719155208.git.philipp.g.hortmann@gmail.com>
Remove switch(type) as type is constant and never matches any of the
cases.
Signed-off-by: Philipp Hortmann <philipp.g.hortmann@gmail.com>
---
drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c | 14 --------------
1 file changed, 14 deletions(-)
diff --git a/drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c b/drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c
index 3fe27ee75b47..82722897d6cc 100644
--- a/drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c
+++ b/drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c
@@ -2549,7 +2549,6 @@ static int cfg80211_rtw_mgmt_tx(struct wiphy *wiphy, struct wireless_dev *wdev,
bool ack = true;
u8 tx_ch = (u8)ieee80211_frequency_to_channel(chan->center_freq);
u8 category, action;
- int type = (-1);
struct adapter *padapter;
struct rtw_wdev_priv *pwdev_priv;
@@ -2581,19 +2580,6 @@ static int cfg80211_rtw_mgmt_tx(struct wiphy *wiphy, struct wireless_dev *wdev,
tx_ret = _cfg80211_rtw_mgmt_tx(padapter, tx_ch, buf, len);
} while (dump_cnt < dump_limit && tx_ret != _SUCCESS);
- switch (type) {
- case P2P_GO_NEGO_CONF:
- rtw_clear_scan_deny(padapter);
- break;
- case P2P_INVIT_RESP:
- if (pwdev_priv->invit_info.flags & BIT(0) && pwdev_priv->invit_info.status == 0) {
- rtw_set_scan_deny(padapter, 5000);
- rtw_pwr_wakeup_ex(padapter, 5000);
- rtw_clear_scan_deny(padapter);
- }
- break;
- }
-
cancel_ps_deny:
rtw_ps_deny_cancel(padapter, PS_DENY_MGNT_TX);
exit:
--
2.45.2
next prev parent reply other threads:[~2024-06-23 17:56 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-06-23 17:56 [PATCH 00/14] staging: rtl8723bs: Remove unused macros in wifi.h Philipp Hortmann
2024-06-23 17:56 ` [PATCH 01/14] staging: rtl8723bs: Remove unused structs starting with profile_info Philipp Hortmann
2024-06-23 17:56 ` Philipp Hortmann [this message]
2024-06-23 17:57 ` [PATCH 03/14] staging: rtl8723bs: Remove unused declarations start with sd_hal_bus_init Philipp Hortmann
2024-06-23 17:57 ` [PATCH 04/14] staging: rtl8723bs: Remove empty file sdio_osintf.h Philipp Hortmann
2024-06-23 17:57 ` [PATCH 05/14] staging: rtl8723bs: Remove unused macros in wifi.h Philipp Hortmann
2024-06-23 17:57 ` [PATCH 06/14] staging: rtl8723bs: Remove unused macros in sta_info.h Philipp Hortmann
2024-06-23 17:57 ` [PATCH 07/14] staging: rtl8723bs: Remove unused macros in rtw_xmit.h Philipp Hortmann
2024-06-23 17:57 ` [PATCH 08/14] staging: rtl8723bs: Remove unused macros in rtw_security.h Philipp Hortmann
2024-06-23 17:57 ` [PATCH 09/14] staging: rtl8723bs: Remove unused macros in rtw_recv.h Philipp Hortmann
2024-06-23 17:57 ` [PATCH 10/14] staging: rtl8723bs: Remove unused macros in rtw_pwrctrl.h Philipp Hortmann
2024-06-23 17:58 ` [PATCH 11/14] staging: rtl8723bs: Remove unused macros in rtw_mp.h Philipp Hortmann
2024-06-23 17:58 ` [PATCH 12/14] staging: rtl8723bs: Remove unused macros in rtw_mlme.h Philipp Hortmann
2024-06-23 17:58 ` [PATCH 13/14] staging: rtl8723bs: Remove unused macros in rtw_io.h Philipp Hortmann
2024-06-23 17:58 ` [PATCH 14/14] staging: rtl8723bs: Remove unused macro in ioctl_cfg80211.c Philipp Hortmann
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1e3982de9a03e75931bf7977fca83c5402084aa4.1719155208.git.philipp.g.hortmann@gmail.com \
--to=philipp.g.hortmann@gmail.com \
--cc=gregkh@linuxfoundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-staging@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®