[PATCH 01/17] staging: rtl8723bs: Remove unused function dvobj_get_port0_adapter

From: Philipp Hortmann
Date: Sun Sep 15 2024 - 02:41:13 EST


Remove unused function dvobj_get_port0_adapter.

Signed-off-by: Philipp Hortmann <philipp.g.hortmann@xxxxxxxxx>
---
drivers/staging/rtl8723bs/core/rtw_wlan_util.c | 8 --------
drivers/staging/rtl8723bs/include/drv_types.h | 2 --
2 files changed, 10 deletions(-)

diff --git a/drivers/staging/rtl8723bs/core/rtw_wlan_util.c b/drivers/staging/rtl8723bs/core/rtw_wlan_util.c
index f37fec1efaf9..2fb14f4ff1af 100644
--- a/drivers/staging/rtl8723bs/core/rtw_wlan_util.c
+++ b/drivers/staging/rtl8723bs/core/rtw_wlan_util.c
@@ -1840,11 +1840,3 @@ u8 rtw_search_max_mac_id(struct adapter *padapter)

return max_mac_id;
}
-
-struct adapter *dvobj_get_port0_adapter(struct dvobj_priv *dvobj)
-{
- if (get_iface_type(dvobj->padapters[i]) != IFACE_PORT0)
- return NULL;
-
- return dvobj->padapters;
-}
diff --git a/drivers/staging/rtl8723bs/include/drv_types.h b/drivers/staging/rtl8723bs/include/drv_types.h
index 0b35c97843cc..0094eed6c32d 100644
--- a/drivers/staging/rtl8723bs/include/drv_types.h
+++ b/drivers/staging/rtl8723bs/include/drv_types.h
@@ -320,8 +320,6 @@ static inline struct device *dvobj_to_dev(struct dvobj_priv *dvobj)
return &dvobj->intf_data.func->dev;
}

-struct adapter *dvobj_get_port0_adapter(struct dvobj_priv *dvobj);
-
enum {
IFACE_PORT0, /* mapping to port0 for C/D series chips */
IFACE_PORT1, /* mapping to port1 for C/D series chip */
--
2.43.0