mirror of
https://github.com/hardkernel/linux.git
synced 2026-05-31 16:26:41 +09:00
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>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
04bdfd20e0
commit
a4e320b721
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user