mirror of
https://github.com/lwfinger/rtl8188eu.git
synced 2024-11-25 05:53:41 +00:00
rtl8188eu: Fix smatch warning in os_dep/osdep_service.c
Smatch shows the following warning: CHECK /home/finger/rtl8188eu/os_dep/osdep_service.c /home/finger/rtl8188eu/os_dep/osdep_service.c:670 rtw_change_ifname() warn: variable dereferenced before check 'padapter' (see line 666) Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
This commit is contained in:
parent
be114f8fae
commit
43dd404762
1 changed files with 2 additions and 1 deletions
|
@ -663,12 +663,13 @@ RETURN:
|
|||
int rtw_change_ifname(struct adapter *padapter, const char *ifname)
|
||||
{
|
||||
struct net_device *pnetdev;
|
||||
struct net_device *cur_pnetdev = padapter->pnetdev;
|
||||
struct net_device *cur_pnetdev;
|
||||
struct rereg_nd_name_data *rereg_priv;
|
||||
int ret;
|
||||
|
||||
if (!padapter)
|
||||
goto error;
|
||||
cur_pnetdev = padapter->pnetdev;
|
||||
|
||||
rereg_priv = &padapter->rereg_nd_name_priv;
|
||||
|
||||
|
|
Loading…
Reference in a new issue