[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20211122195350.GA166134@makvihas>
Date: Tue, 23 Nov 2021 01:23:50 +0530
From: Vihas Mak <makvihas@...il.com>
To: Larry.Finger@...inger.net, phil@...lpotter.co.uk
Cc: gregkh@...uxfoundation.org, straube.linux@...il.com,
martin@...ser.cx, paskripkin@...il.com,
linux-staging@...ts.linux.dev, linux-kernel@...r.kernel.org
Subject: [PATCH] staging: r8188eu: remove unnecessary NULL check
remove unnecessary NULL check surrounding rtw_free_netdev(), as the check
is already performed inside rtw_free_netdev() in
drivers/staging/r8188eu/os_dep/osdep_service.c.
Signed-off-by: Vihas Mak <makvihas@...il.com>
---
drivers/staging/r8188eu/os_dep/usb_intf.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/staging/r8188eu/os_dep/usb_intf.c b/drivers/staging/r8188eu/os_dep/usb_intf.c
index 5a35d9fe3fc9..392bd7868519 100644
--- a/drivers/staging/r8188eu/os_dep/usb_intf.c
+++ b/drivers/staging/r8188eu/os_dep/usb_intf.c
@@ -466,8 +466,7 @@ static void rtw_usb_if1_deinit(struct adapter *if1)
if1->hw_init_completed);
rtw_handle_dualmac(if1, 0);
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)
--
2.25.1
Powered by blists - more mailing lists