mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-15 16:24:13 +08:00
staging: r8188eu: remove initializer from ret in rtw_pwr_wakeup
Remove the success initializer from the ret variable in rtw_pwr_wakeup, as we set it later anyway in the success path, and also set on failure. This makes the function appear cleaner and more consistent. Suggested-by: Dan Carpenter <dan.carpenter@oracle.com> Tested-by: Philipp Hortmann <philipp.g.hortmann@gmail.com> Signed-off-by: Phillip Potter <phil@philpotter.co.uk> Link: https://lore.kernel.org/r/20220728231150.972-2-phil@philpotter.co.uk Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
c528bbb7dc
commit
f3a76018dd
@ -381,7 +381,7 @@ int rtw_pwr_wakeup(struct adapter *padapter)
|
||||
struct mlme_priv *pmlmepriv = &padapter->mlmepriv;
|
||||
unsigned long timeout = jiffies + msecs_to_jiffies(3000);
|
||||
unsigned long deny_time;
|
||||
int ret = 0;
|
||||
int ret;
|
||||
|
||||
while (pwrpriv->ps_processing && time_before(jiffies, timeout))
|
||||
msleep(10);
|
||||
|
Loading…
Reference in New Issue
Block a user