]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
staging: rtl8723bs: hal: Remove function clearinterrupt8723bsdio()
authorNishka Dasgupta <nishkadg.linux@gmail.com>
Fri, 28 Jun 2019 10:58:31 +0000 (16:28 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 1 Jul 2019 08:49:43 +0000 (10:49 +0200)
Remove unused function clearinterrupt8723bsdio and associated ifdef.
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/hal/sdio_ops.c

index 399dbb4c934f1eb830ebcefeb9bfbffd840cd9c1..82e249e7fbb464b664b455b63c4ec0c8885e164e 100644 (file)
@@ -795,41 +795,6 @@ void InitSysInterrupt8723BSdio(struct adapter *adapter)
                                                        0);
 }
 
-#ifdef CONFIG_WOWLAN
-/*  */
-/*     Description: */
-/*             Clear corresponding SDIO Host ISR interrupt service. */
-/*  */
-/*     Assumption: */
-/*             Using SDIO Local register ONLY for configuration. */
-/*  */
-/*     Created by Roger, 2011.02.11. */
-/*  */
-void clearinterrupt8723bsdio(struct adapter *adapter)
-{
-       struct hal_com_data *haldata;
-       u8 *clear;
-
-       if (adapter->bSurpriseRemoved)
-               return;
-
-       haldata = GET_HAL_DATA(adapter);
-       clear = rtw_zmalloc(4);
-
-       if (!clear)
-               return;
-
-       /*  Clear corresponding HISR Content if needed */
-       *(__le32 *)clear = cpu_to_le32(haldata->sdio_hisr & MASK_SDIO_HISR_CLEAR);
-       if (*(__le32 *)clear) {
-               /*  Perform write one clear operation */
-               sdio_local_write(padapter, SDIO_REG_HISR, 4, clear);
-       }
-
-       kfree(clear);
-}
-#endif
-
 /*  */
 /*     Description: */
 /*             Enalbe SDIO Host Interrupt Mask configuration on SDIO local domain. */