All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] rtl8723au:type casting corrections
@ 2014-08-13  2:30 Raphael Silva
  2014-08-13 15:42 ` Jes Sorensen
  0 siblings, 1 reply; 2+ messages in thread
From: Raphael Silva @ 2014-08-13  2:30 UTC (permalink / raw)
  To: Larry.Finger; +Cc: Jes.Sorensen, linux-wireless, Raphael Silva

 Type casting corrections in order to solve warnings of the sparce static analyser.

Signed-off-by: Raphael Silva <rapphil@gmail.com>
---
 drivers/staging/rtl8723au/hal/usb_halinit.c       | 4 ++--
 drivers/staging/rtl8723au/os_dep/ioctl_cfg80211.c | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/staging/rtl8723au/hal/usb_halinit.c b/drivers/staging/rtl8723au/hal/usb_halinit.c
index b49bf33..969e4f3 100644
--- a/drivers/staging/rtl8723au/hal/usb_halinit.c
+++ b/drivers/staging/rtl8723au/hal/usb_halinit.c
@@ -1228,9 +1228,9 @@ static void Hal_EfuseParsePIDVID_8723AU(struct rtw_adapter *pAdapter,
 	} else {
 		/*  VID, PID */
 		pHalData->EEPROMVID =
-			le16_to_cpu(*(u16 *)&hwinfo[EEPROM_VID_8723AU]);
+			le16_to_cpu(*(__le16 *)&hwinfo[EEPROM_VID_8723AU]);
 		pHalData->EEPROMPID =
-			le16_to_cpu(*(u16 *)&hwinfo[EEPROM_PID_8723AU]);
+			le16_to_cpu(*(__le16 *)&hwinfo[EEPROM_PID_8723AU]);
 	}
 
 	MSG_8723A("EEPROM VID = 0x%4x\n", pHalData->EEPROMVID);

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

end of thread, other threads:[~2014-08-13 15:42 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-08-13  2:30 [PATCH] rtl8723au:type casting corrections Raphael Silva
2014-08-13 15:42 ` Jes Sorensen

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.