Skip to content

Commit

Permalink
staging: r8188eu: remove initializer from ret in rtw_pwr_wakeup
Browse files Browse the repository at this point in the history
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 <[email protected]>
Tested-by: Philipp Hortmann <[email protected]>
Signed-off-by: Phillip Potter <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
  • Loading branch information
PhilPotter authored and gregkh committed Jul 29, 2022
1 parent c528bbb commit f3a7601
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/staging/r8188eu/core/rtw_pwrctrl.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit f3a7601

Please sign in to comment.