diff options
author | Martin Kaiser <martin@kaiser.cx> | 2022-02-09 20:28:42 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2022-02-15 17:10:50 +0100 |
commit | 83e5f11b8f238259bd6b47022888c573a461b971 (patch) | |
tree | 3f6308a121afde1c0bac4c9a5bc90f0da8570313 /drivers/staging/r8188eu/include/usb_ops.h | |
parent | staging: r8188eu: clean up enum hw_variables (diff) | |
download | linux-dev-83e5f11b8f238259bd6b47022888c573a461b971.tar.xz linux-dev-83e5f11b8f238259bd6b47022888c573a461b971.zip |
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>
Diffstat (limited to 'drivers/staging/r8188eu/include/usb_ops.h')
-rw-r--r-- | drivers/staging/r8188eu/include/usb_ops.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/r8188eu/include/usb_ops.h b/drivers/staging/r8188eu/include/usb_ops.h index 0a1155bbc7b8..62e4706c0497 100644 --- a/drivers/staging/r8188eu/include/usb_ops.h +++ b/drivers/staging/r8188eu/include/usb_ops.h @@ -55,7 +55,7 @@ static inline u8 rtw_usb_bulk_size_boundary(struct adapter *padapter, u8 rst = true; struct dvobj_priv *pdvobjpriv = adapter_to_dvobj(padapter); - if (pdvobjpriv->ishighspeed) + if (pdvobjpriv->pusbdev->speed == USB_SPEED_HIGH) rst = (0 == (buf_len) % USB_HIGH_SPEED_BULK_SIZE) ? true : false; else |