From: Martin Kaiser Date: Thu, 8 Apr 2021 19:55:55 +0000 (+0200) Subject: staging: rtl8188eu: remove a constant variable X-Git-Tag: v5.15~1315^2~110 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2fa087e0ae72e39e256c12642ee870da1fdf1164;p=platform%2Fkernel%2Flinux-starfive.git staging: rtl8188eu: remove a constant variable enqueue is always 0. Signed-off-by: Martin Kaiser Link: https://lore.kernel.org/r/20210408195601.4762-6-martin@kaiser.cx Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/rtl8188eu/core/rtw_pwrctrl.c b/drivers/staging/rtl8188eu/core/rtw_pwrctrl.c index c3c1cf6..4d507d9 100644 --- a/drivers/staging/rtl8188eu/core/rtw_pwrctrl.c +++ b/drivers/staging/rtl8188eu/core/rtw_pwrctrl.c @@ -480,10 +480,9 @@ void LPS_Leave(struct adapter *padapter) void LeaveAllPowerSaveMode(struct adapter *Adapter) { struct mlme_priv *pmlmepriv = &Adapter->mlmepriv; - u8 enqueue = 0; if (check_fwstate(pmlmepriv, _FW_LINKED)) - rtw_lps_ctrl_wk_cmd(Adapter, LPS_CTRL_LEAVE, enqueue); + rtw_lps_ctrl_wk_cmd(Adapter, LPS_CTRL_LEAVE, 0); } void rtw_init_pwrctrl_priv(struct adapter *padapter)