diff options
author | Larry Finger <Larry.Finger@lwfinger.net> | 2013-09-04 20:55:55 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-09-17 14:47:44 (GMT) |
commit | dc2f9db95507b8641303c70e8e62ce286815ccdf (patch) | |
tree | 1463bcc65c88ff266b842209654f37e1e3ec25e9 /drivers/staging/rtl8188eu | |
parent | d7a380b2b3d748362c25da8e356ce4fe8ab316ce (diff) | |
download | linux-fsl-qoriq-dc2f9db95507b8641303c70e8e62ce286815ccdf.tar.xz |
staging: r8188eu: Fix smatch warning in os_dep/usb_intf.c
Smatch reports the following warning:
CHECK drivers/staging/rtl8188eu/os_dep/usb_intf.c
drivers/staging/rtl8188eu/os_dep/usb_intf.c:740 rtw_usb_if1_init() info: redundant null check on padapter->HalData calling kfree()
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/rtl8188eu')
-rw-r--r-- | drivers/staging/rtl8188eu/os_dep/usb_intf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/rtl8188eu/os_dep/usb_intf.c b/drivers/staging/rtl8188eu/os_dep/usb_intf.c index d3078d2..6e40299 100644 --- a/drivers/staging/rtl8188eu/os_dep/usb_intf.c +++ b/drivers/staging/rtl8188eu/os_dep/usb_intf.c @@ -736,7 +736,7 @@ static struct adapter *rtw_usb_if1_init(struct dvobj_priv *dvobj, status = _SUCCESS; free_hal_data: - if (status != _SUCCESS && padapter->HalData) + if (status != _SUCCESS) kfree(padapter->HalData); handle_dualmac: if (status != _SUCCESS) |