From: Martin Kaiser Date: Fri, 26 Nov 2021 13:03:59 +0000 (+0100) Subject: staging: r8188eu: remove _ps_close_RF X-Git-Tag: v6.1-rc5~2247^2~204 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2c102853a8e33edcdf023c0f7ce3d4d6ea686536;p=platform%2Fkernel%2Flinux-starfive.git staging: r8188eu: remove _ps_close_RF The _ps_close_RF is empty. Remove it. Reviewed-by: Michael Straube Signed-off-by: Martin Kaiser Link: https://lore.kernel.org/r/20211126130400.26151-4-martin@kaiser.cx Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/r8188eu/hal/usb_halinit.c b/drivers/staging/r8188eu/hal/usb_halinit.c index c314433..ceaf5af 100644 --- a/drivers/staging/r8188eu/hal/usb_halinit.c +++ b/drivers/staging/r8188eu/hal/usb_halinit.c @@ -836,12 +836,6 @@ exit: return status; } -static void _ps_close_RF(struct adapter *adapt) -{ - /* here call with bRegSSPwrLvl 1, bRegSSPwrLvl 2 needs to be verified */ - /* phy_SsPwrSwitch92CU(adapt, rf_off, 1); */ -} - static void CardDisableRTL8188EU(struct adapter *Adapter) { u8 val8; @@ -907,9 +901,7 @@ u32 rtl8188eu_hal_deinit(struct adapter *Adapter) rtw_write32(Adapter, REG_HIMRE_88E, IMR_DISABLED_88E); DBG_88E("bkeepfwalive(%x)\n", Adapter->pwrctrlpriv.bkeepfwalive); - if (Adapter->pwrctrlpriv.bkeepfwalive) { - _ps_close_RF(Adapter); - } else { + if (!Adapter->pwrctrlpriv.bkeepfwalive) { if (Adapter->hw_init_completed) { CardDisableRTL8188EU(Adapter); }