summaryrefslogtreecommitdiff
path: root/drivers/staging/r8188eu/os_dep
diff options
context:
space:
mode:
authorMartin Kaiser <martin@kaiser.cx>2021-10-05 22:08:19 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-10-10 14:55:28 +0200
commit8504b988c020216d70a9be8928a50578eb1c1ded (patch)
tree4d498fa6629fe30ed7f545a6571c5b26d4135900 /drivers/staging/r8188eu/os_dep
parentd3e45102f9a82f526572585e7fcb1abd6dedbb72 (diff)
staging: r8188eu: chip_type is write-only
chip_type in struct adapter is never read. Remove the component and the code to initialise it. Acked-by: Michael Straube <straube.linux@gmail.com> Signed-off-by: Martin Kaiser <martin@kaiser.cx> Link: https://lore.kernel.org/r/20211005200821.19783-7-martin@kaiser.cx Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/r8188eu/os_dep')
-rw-r--r--drivers/staging/r8188eu/os_dep/usb_intf.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/drivers/staging/r8188eu/os_dep/usb_intf.c b/drivers/staging/r8188eu/os_dep/usb_intf.c
index b5e0c6561108..193b5faac56a 100644
--- a/drivers/staging/r8188eu/os_dep/usb_intf.c
+++ b/drivers/staging/r8188eu/os_dep/usb_intf.c
@@ -172,12 +172,6 @@ static void usb_dvobj_deinit(struct usb_interface *usb_intf)
}
-static void chip_by_usb_id(struct adapter *padapter)
-{
- padapter->chip_type = NULL_CHIP_TYPE;
- hal_set_hw_type(padapter);
-}
-
static void usb_intf_start(struct adapter *padapter)
{
rtl8188eu_inirp_init(padapter);
@@ -387,7 +381,6 @@ static struct adapter *rtw_usb_if1_init(struct dvobj_priv *dvobj,
/* step 1-1., decide the chip_type via vid/pid */
padapter->interface_type = RTW_USB;
- chip_by_usb_id(padapter);
if (rtw_handle_dualmac(padapter, 1) != _SUCCESS)
goto free_adapter;