On Sun, Aug 17, 2014 at 10:19:28AM -0300, Raphael Silva wrote:
>  Type casting corrections in order to solve warnings of the sparce static 
> analyser.
> 
> Signed-off-by: Raphael Silva <rapp...@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]);

Shouldn't the structure bt of type __le16 so that there is no warning
here?

>               pHalData->EEPROMPID =
> -                     le16_to_cpu(*(u16 *)&hwinfo[EEPROM_PID_8723AU]);
> +                     le16_to_cpu(*(__le16 *)&hwinfo[EEPROM_PID_8723AU]);

Same here.

thanks,

greg k-h
_______________________________________________
devel mailing list
de...@linuxdriverproject.org
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

Reply via email to