[PATCH v8 15/19] staging: r8188eu: change the type of a variable in rtw_read16()

From: Fabio M. De Francesco
Date: Sun Sep 19 2021 - 19:56:38 EST


Change the type of "data" from __le32 to __le16.

Co-developed-by: Pavel Skripkin <paskripkin@xxxxxxxxx>
Signed-off-by: Pavel Skripkin <paskripkin@xxxxxxxxx>
Signed-off-by: Fabio M. De Francesco <fmdefrancesco@xxxxxxxxx>
---
drivers/staging/r8188eu/hal/usb_ops_linux.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/staging/r8188eu/hal/usb_ops_linux.c b/drivers/staging/r8188eu/hal/usb_ops_linux.c
index 625b29af9410..c378b5740353 100644
--- a/drivers/staging/r8188eu/hal/usb_ops_linux.c
+++ b/drivers/staging/r8188eu/hal/usb_ops_linux.c
@@ -111,11 +111,11 @@ u16 rtw_read16(struct adapter *adapter, u32 addr)
struct io_priv *io_priv = &adapter->iopriv;
struct intf_hdl *intfhdl = &io_priv->intf;
u16 value = addr & 0xffff;
- __le32 data;
+ __le16 data;

usbctrl_vendorreq(intfhdl, value, &data, 2, REALTEK_USB_VENQT_READ);

- return (u16)(le32_to_cpu(data) & 0xffff);
+ return le16_to_cpu(data);
}

u32 rtw_read32(struct adapter *adapter, u32 addr)
--
2.33.0