mirror of
https://github.com/lwfinger/rtl8188eu.git
synced 2024-11-28 23:23:40 +00:00
rtl8188eu: Fix smatch warning in os_dep/usb_intf.c
iSmatch shows the following warning: CHECK /home/finger/rtl8188eu/os_dep/usb_intf.c /home/finger/rtl8188eu/os_dep/usb_intf.c:720 rtw_resume_process() error: potentially dereferencing uninitialized 'pwrpriv'. Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
This commit is contained in:
parent
ffac87a92b
commit
72c61c0cb2
1 changed files with 2 additions and 2 deletions
|
@ -717,12 +717,12 @@ int rtw_resume_process(struct adapter *padapter)
|
||||||
|
|
||||||
ret = 0;
|
ret = 0;
|
||||||
exit:
|
exit:
|
||||||
pwrpriv->bInSuspend = false;
|
if (pwrpriv)
|
||||||
|
pwrpriv->bInSuspend = false;
|
||||||
DBG_88E("<=== %s return %d.............. in %dms\n", __func__
|
DBG_88E("<=== %s return %d.............. in %dms\n", __func__
|
||||||
, ret, rtw_get_passing_time_ms(start_time));
|
, ret, rtw_get_passing_time_ms(start_time));
|
||||||
|
|
||||||
_func_exit_;
|
_func_exit_;
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue