summaryrefslogtreecommitdiffstats
path: root/drivers/staging/rtl8188eu/os_dep
diff options
context:
space:
mode:
authorBhumika Goyal <bhumirks@gmail.com>2016-02-14 20:54:03 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-02-14 16:44:06 -0800
commita4e320b7215d2d1f4932474276a46219d6a4e9f1 (patch)
treeeea895eade6a49c97fa91646063ac9874ad01512 /drivers/staging/rtl8188eu/os_dep
parent04bdfd20e08f9a10f6155d181a7e2e1a0d8ca24c (diff)
downloadop-kernel-dev-a4e320b7215d2d1f4932474276a46219d6a4e9f1.zip
op-kernel-dev-a4e320b7215d2d1f4932474276a46219d6a4e9f1.tar.gz
Staging: rtl8188eu: os_dep: Remove NULL test before rtw_free_netdev
The function rtw_free_netdev test whether its argument is NULL and return immediately. So NULL test before this function is not needed. Signed-off-by: Bhumika Goyal <bhumirks@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/rtl8188eu/os_dep')
-rw-r--r--drivers/staging/rtl8188eu/os_dep/usb_intf.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/staging/rtl8188eu/os_dep/usb_intf.c b/drivers/staging/rtl8188eu/os_dep/usb_intf.c
index 01d50f7..6a68f17 100644
--- a/drivers/staging/rtl8188eu/os_dep/usb_intf.c
+++ b/drivers/staging/rtl8188eu/os_dep/usb_intf.c
@@ -474,8 +474,7 @@ static void rtw_usb_if1_deinit(struct adapter *if1)
pr_debug("+r871xu_dev_remove, hw_init_completed=%d\n",
if1->hw_init_completed);
rtw_free_drv_sw(if1);
- if (pnetdev)
- rtw_free_netdev(pnetdev);
+ rtw_free_netdev(pnetdev);
}
static int rtw_drv_init(struct usb_interface *pusb_intf, const struct usb_device_id *pdid)
OpenPOWER on IntegriCloud