Skip to contentSkip to conversation

rtl8723au:type casting corrections

PATCH In review Raphael Silva 2 participants 2 messages Aug 13, 2014 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 rtl8723au:type casting corrections

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

---
 drivers/staging/rtl8723au/hal/usb_halinit.c       | 4 ++--
 drivers/staging/rtl8723au/os_dep/ioctl_cfg80211.c | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)
drivers/staging/rtl8723au/hal/usb_halinit.c +2 -2
index b49bf33..969e4f3 100644
@@ -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);
#1 lore raw
Quoted 7 lines · Raphael Silva

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

---
 drivers/staging/rtl8723au/hal/usb_halinit.c       | 4 ++--
 drivers/staging/rtl8723au/os_dep/ioctl_cfg80211.c | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

In the future, staging patches must have 'staging: rtl8723au: ....' in the subject, and you need to CC [email protected] as well.

Cheers,
Jes

Quoted 17 lines
drivers/staging/rtl8723au/hal/usb_halinit.c +2 -2
index b49bf33..969e4f3 100644
@@ -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);