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:
Larry Finger 2013-09-05 17:21:46 -05:00
parent ffac87a92b
commit 72c61c0cb2

View file

@ -717,12 +717,12 @@ int rtw_resume_process(struct adapter *padapter)
ret = 0; ret = 0;
exit: exit:
if (pwrpriv)
pwrpriv->bInSuspend = false; 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;
} }