staging: rtl8723bs: sdio_ops: removing unused variable
authorEdmundo Carmona Antoranz <eantoranz@gmail.com>
Sat, 27 Mar 2021 00:17:34 +0000 (18:17 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 28 Mar 2021 12:33:54 +0000 (14:33 +0200)
Inside sd_int_dpc(), variable report is set but it's never read.
Getting rid of it.

Removing this warning:

drivers/staging/rtl8723bs/hal/sdio_ops.c:946:30: warning: variable â€˜report’ set but not used [-Wunused-but-set-variable]

Signed-off-by: Edmundo Carmona Antoranz <eantoranz@gmail.com>
Link: https://lore.kernel.org/r/20210327001736.180881-4-eantoranz@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723bs/hal/sdio_ops.c

index 170a28f4b19117ccae24b1aa34e5239db39c7403..a24a39e70454691b6d41d46a0e35b4301c4a38ee 100644 (file)
@@ -943,11 +943,9 @@ void sd_int_dpc(struct adapter *adapter)
        }
 
        if (hal->sdio_hisr & SDIO_HISR_CPWM1) {
-               struct reportpwrstate_parm report;
-
                del_timer_sync(&(pwrctl->pwr_rpwm_timer));
 
-               report.state = SdioLocalCmd52Read1Byte(adapter, SDIO_REG_HCPWM1_8723B);
+               SdioLocalCmd52Read1Byte(adapter, SDIO_REG_HCPWM1_8723B);
 
                _set_workitem(&(pwrctl->cpwm_event));
        }