[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1487127448-32351-1-git-send-email-albert008.xu@gmail.com>
Date: Wed, 15 Feb 2017 10:57:28 +0800
From: maomao xu <albert008.xu@...il.com>
To: Larry.Finger@...inger.net, florian.c.schilhabel@...glemail.com,
gregkh@...uxfoundation.org, raphael.beamonte@...il.com,
tapanprakasht@...il.com, jrdr.linux@...il.com, bhumirks@...il.com,
vijaikumar.kanagarajan@...il.com, devel@...verdev.osuosl.org,
linux-kernel@...r.kernel.org
Cc: maomao xu <albert008.xu@...il.com>
Subject: [PATCH] staging: rtl8712: Fix sparse warnings about endianness
drivers/staging/rtl8712/rtl871x_xmit.c:350:44: warning: restricted __le32 degrades to integer
Signed-off-by: maomao xu <albert008.xu@...il.com>
diff --git a/drivers/staging/rtl8712/rtl871x_xmit.c b/drivers/staging/rtl8712/rtl871x_xmit.c
index 4ab82ba..1c2ac28 100644
--- a/drivers/staging/rtl8712/rtl871x_xmit.c
+++ b/drivers/staging/rtl8712/rtl871x_xmit.c
@@ -347,7 +347,7 @@ sint r8712_update_attrib(struct _adapter *padapter, _pkt *pkt,
* some settings above.
*/
if (check_fwstate(pmlmepriv, WIFI_MP_STATE))
- pattrib->priority = (txdesc.txdw1 >> QSEL_SHT) & 0x1f;
+ pattrib->priority = (le32_to_cpu(txdesc.txdw1) >> QSEL_SHT) & 0x1f;
return _SUCCESS;
}
--
1.7.9.5
Powered by blists - more mailing lists