staging: r8188eu: remove ishighspeed from dvobj_priv
authorMartin Kaiser <martin@kaiser.cx>
Wed, 9 Feb 2022 19:28:42 +0000 (20:28 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 15 Feb 2022 16:10:50 +0000 (17:10 +0100)
commit83e5f11b8f238259bd6b47022888c573a461b971
tree3f6308a121afde1c0bac4c9a5bc90f0da8570313
parent167390093b9f2265c14aae4147b659adac5968cd
staging: r8188eu: remove ishighspeed from dvobj_priv

There's no need to store the usb device speed in struct dvobj_priv.
We can read the speed from struct usb_device. dvobj_priv has a pointer
to the usb_device.

Reorder one if-statement to make the code clearer.

Signed-off-by: Martin Kaiser <martin@kaiser.cx>
Link: https://lore.kernel.org/r/20220209192842.99399-1-martin@kaiser.cx
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/r8188eu/core/rtw_iol.c
drivers/staging/r8188eu/hal/rtl8188eu_xmit.c
drivers/staging/r8188eu/hal/usb_halinit.c
drivers/staging/r8188eu/include/drv_types.h
drivers/staging/r8188eu/include/usb_ops.h
drivers/staging/r8188eu/os_dep/usb_intf.c