From: Ethan Tidmore <ethantidmore06@gmail.com>
To: Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
linux-staging@lists.linux.dev
Cc: Dan Carpenter <dan.carpenter@linaro.org>,
linux-kernel@vger.kernel.org,
Ethan Tidmore <ethantidmore06@gmail.com>
Subject: [PATCH 2/2] staging: rtl8723bs: Remove unused members in struct rtw_wdev_priv
Date: Mon, 9 Feb 2026 17:09:36 -0600 [thread overview]
Message-ID: <20260209230936.37385-3-ethantidmore06@gmail.com> (raw)
In-Reply-To: <20260209230936.37385-1-ethantidmore06@gmail.com>
Remove members p2p_enabled, provdisc_req_issued, bandroid_scan in
rtw_wdev_priv as they are never used anywhere in the driver.
Signed-off-by: Ethan Tidmore <ethantidmore06@gmail.com>
---
drivers/staging/rtl8723bs/include/ioctl_cfg80211.h | 5 -----
drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c | 5 -----
drivers/staging/rtl8723bs/os_dep/os_intfs.c | 1 -
3 files changed, 11 deletions(-)
diff --git a/drivers/staging/rtl8723bs/include/ioctl_cfg80211.h b/drivers/staging/rtl8723bs/include/ioctl_cfg80211.h
index 782f79e9228a..bc62b7285950 100644
--- a/drivers/staging/rtl8723bs/include/ioctl_cfg80211.h
+++ b/drivers/staging/rtl8723bs/include/ioctl_cfg80211.h
@@ -18,11 +18,6 @@ struct rtw_wdev_priv {
struct net_device *pmon_ndev;/* for monitor interface */
char ifname_mon[IFNAMSIZ + 1]; /* interface name for monitor interface */
- u8 p2p_enabled;
-
- u8 provdisc_req_issued;
-
- u8 bandroid_scan;
bool block;
bool power_mgmt;
};
diff --git a/drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c b/drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c
index 21b1487d32ae..3c491f61c680 100644
--- a/drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c
+++ b/drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c
@@ -2749,11 +2749,6 @@ int rtw_wdev_alloc(struct adapter *padapter, struct device *dev)
pwdev_priv->scan_request = NULL;
spin_lock_init(&pwdev_priv->scan_req_lock);
- pwdev_priv->p2p_enabled = false;
- pwdev_priv->provdisc_req_issued = false;
-
- pwdev_priv->bandroid_scan = false;
-
if (padapter->registrypriv.power_mgnt != PS_MODE_ACTIVE)
pwdev_priv->power_mgmt = true;
else
diff --git a/drivers/staging/rtl8723bs/os_dep/os_intfs.c b/drivers/staging/rtl8723bs/os_dep/os_intfs.c
index 21a0c3cf4c31..7ac197462773 100644
--- a/drivers/staging/rtl8723bs/os_dep/os_intfs.c
+++ b/drivers/staging/rtl8723bs/os_dep/os_intfs.c
@@ -960,7 +960,6 @@ static int netdev_close(struct net_device *pnetdev)
}
rtw_scan_abort(padapter);
- adapter_wdev_data(padapter)->bandroid_scan = false;
return 0;
}
--
2.53.0
prev parent reply other threads:[~2026-02-09 23:09 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-02-09 23:09 [PATCH 0/2] Remove unused structs and members Ethan Tidmore
2026-02-09 23:09 ` [PATCH 1/2] staging: rtl8723bs: Remove unused structs and helper functions Ethan Tidmore
2026-02-09 23:09 ` Ethan Tidmore [this message]
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=20260209230936.37385-3-ethantidmore06@gmail.com \
--to=ethantidmore06@gmail.com \
--cc=dan.carpenter@linaro.org \
--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