linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] staging wlan-ng: mark PDA buf as __le16
@ 2017-04-07 12:47 Maciek Borzecki
  2017-04-08 11:01 ` Greg Kroah-Hartman
  0 siblings, 1 reply; 4+ messages in thread
From: Maciek Borzecki @ 2017-04-07 12:47 UTC (permalink / raw)
  To: Greg Kroah-Hartman, devel, linux-kernel
  Cc: Sergio Paracuellos, Maciek Borzecki

PDA buffer contains little-endian data, clearly mark it as such.

Fixes sparse warnings:
  drivers/staging/wlan-ng/hfa384x_usb.c:2359:34: warning: cast to restricted __le16
  drivers/staging/wlan-ng/hfa384x_usb.c:2360:35: warning: cast to restricted __le16
  drivers/staging/wlan-ng/hfa384x_usb.c:2382:44: warning: cast to restricted __le16

Signed-off-by: Maciek Borzecki <maciek.borzecki@gmail.com>
---
 drivers/staging/wlan-ng/hfa384x_usb.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/staging/wlan-ng/hfa384x_usb.c b/drivers/staging/wlan-ng/hfa384x_usb.c
index 6134eba5cad4693997faf8d2d77947ff7e8b0713..64848778834cae1d341c59ecce756d11b218b4c8 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 */
-- 
2.9.3

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-04-08 13:22 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-04-07 12:47 [PATCH] staging wlan-ng: mark PDA buf as __le16 Maciek Borzecki
2017-04-08 11:01 ` Greg Kroah-Hartman
2017-04-08 13:18   ` Maciek Borzecki
2017-04-08 13:22     ` Maciek Borzecki

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).