diff options
author | Adrien Descamps <adrien.descamps@gmail.com> | 2017-03-09 21:15:18 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-03-12 15:17:02 +0100 |
commit | a18ffdf4ea7c6ac496f940d0852d42e1074c3450 (patch) | |
tree | c61a3ba028aff4bfb1e4acc3651b63df0ccf25e2 /drivers/staging/wlan-ng/hfa384x_usb.c | |
parent | Staging: xgifb: XGI_main_26.c: non-standard C (diff) | |
download | linux-dev-a18ffdf4ea7c6ac496f940d0852d42e1074c3450.tar.xz linux-dev-a18ffdf4ea7c6ac496f940d0852d42e1074c3450.zip |
Staging: wlan-ng: Fix sparse warnings by using appropriate endian types
Fix some sparse warning by using correct endian types in structs and
local variables.
This patch only fix sparse warnings and do not change the logic.
Signed-off-by: Adrien Descamps <adrien.descamps@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/wlan-ng/hfa384x_usb.c')
-rw-r--r-- | drivers/staging/wlan-ng/hfa384x_usb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/wlan-ng/hfa384x_usb.c b/drivers/staging/wlan-ng/hfa384x_usb.c index 6134eba5cad4..64848778834c 100644 --- a/drivers/staging/wlan-ng/hfa384x_usb.c +++ b/drivers/staging/wlan-ng/hfa384x_usb.c @@ -2316,7 +2316,7 @@ int hfa384x_drvr_ramdl_write(struct hfa384x *hw, u32 daddr, void *buf, u32 len) int hfa384x_drvr_readpda(struct hfa384x *hw, void *buf, unsigned int len) { int result = 0; - u16 *pda = buf; + __le16 *pda = buf; int pdaok = 0; int morepdrs = 1; int currpdr = 0; /* word offset of the current pdr */ |