Skip to contentSkip to conversation

Staging: wlan-ng: hfa384x_usb: Fixed cast to restricted __le16 sparse warning

PATCH In review Jaya Durga 2 participants 2 messages Jun 16, 2017 Staging

lore
Share & tools
lore

Jaya Durga

author
#0 lore raw

PATCH 1/1 Staging: wlan-ng: hfa384x_usb: Fixed cast to restricted __le16 sparse warning

warning: cast to restricted __le16

---
 drivers/staging/wlan-ng/hfa384x_usb.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/wlan-ng/hfa384x_usb.c +0 -0
index a812e55..0e95e45 100644
@@ -3380,7 +3380,7 @@ static void hfa384x_usbin_rx(struct wlandevice *wlandev, struct sk_buff *skb)
	u16 fc;

	/* Byte order convert once up front. */
-	usbin->rxfrm.desc.status = le16_to_cpu(usbin->rxfrm.desc.status);
+	le16_to_cpus(&usbin->rxfrm.desc.status);
	usbin->rxfrm.desc.time = le32_to_cpu(usbin->rxfrm.desc.time);

	/* Now handle frame based on port# */

--
1.9.1

maintainer
#1 lore raw
Quoted 1 line · Jaya Durga

warning: cast to restricted __le16

What does this mean? It doesn't tell us why you are doing what you are doing here.

Please be much more specific and descriptive.

thanks,

greg k-h