diff options
author | Nishka Dasgupta <nishkadg.linux@gmail.com> | 2019-06-28 16:28:30 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-07-01 10:49:43 +0200 |
commit | 5c5f1c1d994c9fc872ef95c30f34329a6fbec4d1 (patch) | |
tree | 599c03da5d1735835377dd946c0f2515302308b0 /drivers/staging/rtl8723bs | |
parent | 3a1555da57f2aef9f5d9a673833ad79cc8763832 (diff) |
staging: rtl8723bs: core: Remove function wait_eeprom_cmd_done()
Remove unused function wait_eeprom_cmd_done.
Issue found with Coccinelle.
Signed-off-by: Nishka Dasgupta <nishkadg.linux@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/rtl8723bs')
-rw-r--r-- | drivers/staging/rtl8723bs/core/rtw_eeprom.c | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/drivers/staging/rtl8723bs/core/rtw_eeprom.c b/drivers/staging/rtl8723bs/core/rtw_eeprom.c index a707c2534a65..3cbd65dee741 100644 --- a/drivers/staging/rtl8723bs/core/rtw_eeprom.c +++ b/drivers/staging/rtl8723bs/core/rtw_eeprom.c @@ -118,25 +118,6 @@ _func_enter_; _func_exit_; } -u16 wait_eeprom_cmd_done(_adapter *padapter) -{ - u8 x; - u16 i, res = false; -_func_enter_; - standby(padapter); - for (i = 0; i < 200; i++) { - x = rtw_read8(padapter, EE_9346CR); - if (x & _EEDO) { - res = true; - goto exit; - } - udelay(CLOCK_RATE); - } -exit: -_func_exit_; - return res; -} - void eeprom_clean(_adapter *padapter) { u16 x; |