staging: rtl8723bs: core: Remove function wait_eeprom_cmd_done()
authorNishka Dasgupta <nishkadg.linux@gmail.com>
Fri, 28 Jun 2019 10:58:30 +0000 (16:28 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 1 Jul 2019 08:49:43 +0000 (10:49 +0200)
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>
drivers/staging/rtl8723bs/core/rtw_eeprom.c

index a707c2534a657618500e97fae2d42f3cea641a8f..3cbd65dee741b1adfe31fd728e78a49c0f12c62b 100644 (file)
@@ -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;