Remove unused function _ReadCAM.
Signed-off-by: Philipp Hortmann <philipp.g.hortmann@gmail.com>
---
drivers/staging/rtl8723bs/core/rtw_wlan_util.c | 15 ---------------
1 file changed, 15 deletions(-)
diff --git a/drivers/staging/rtl8723bs/core/rtw_wlan_util.c b/drivers/staging/rtl8723bs/core/rtw_wlan_util.c
index 4eee324385a3..9bef4b9e2aca 100644
--- a/drivers/staging/rtl8723bs/core/rtw_wlan_util.c
+++ b/drivers/staging/rtl8723bs/core/rtw_wlan_util.c
@@ -435,21 +435,6 @@ void invalidate_cam_all(struct adapter *padapter)
spin_unlock_bh(&cam_ctl->lock);
}
-static u32 _ReadCAM(struct adapter *padapter, u32 addr)
-{
- u32 count = 0, cmd;
-
- cmd = CAM_POLLINIG | addr;
- rtw_write32(padapter, RWCAM, cmd);
-
- do {
- if (0 == (rtw_read32(padapter, REG_CAMCMD) & CAM_POLLINIG))
- break;
- } while (count++ < 100);
-
- return rtw_read32(padapter, REG_CAMREAD);
-}
-
void _write_cam(struct adapter *padapter, u8 entry, u16 ctrl, u8 *mac, u8 *key)
{
unsigned int i, val, addr;
--
2.43.0