mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] staging: rtl8712: Fix sparse warnings about endianness
@ 2017-02-15  2:57 maomao xu
  2017-02-15 16:38 ` Larry Finger
  0 siblings, 1 reply; 2+ messages in thread
From: maomao xu @ 2017-02-15  2:57 UTC (permalink / raw)
  To: Larry.Finger, florian.c.schilhabel, gregkh, raphael.beamonte,
	tapanprakasht, jrdr.linux, bhumirks, vijaikumar.kanagarajan,
	devel, linux-kernel
  Cc: maomao xu

drivers/staging/rtl8712/rtl871x_xmit.c:350:44: warning: restricted __le32 degrades to integer

Signed-off-by: maomao xu <albert008.xu@gmail.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

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

end of thread, other threads:[~2017-02-15 16:38 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-02-15  2:57 [PATCH] staging: rtl8712: Fix sparse warnings about endianness maomao xu
2017-02-15 16:38 ` Larry Finger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®