Re: [PATCH] staging:rtl8723au: fix sparse warning: incorrect type in assignment

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Kinka Huang <kinkabrain@xxxxxxxxx> writes:
> Signed-off-by: Kinka Huang <kinkabrain@xxxxxxxxx>
> ---
>  drivers/staging/rtl8723au/core/rtw_mlme.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)

Eeeek, nice catch!

Acked-by: Jes Sorensen <Jes.Sorensen@xxxxxxxxxx>

>
> diff --git a/drivers/staging/rtl8723au/core/rtw_mlme.c b/drivers/staging/rtl8723au/core/rtw_mlme.c
> index 85d1eca..6c1a7fb 100644
> --- a/drivers/staging/rtl8723au/core/rtw_mlme.c
> +++ b/drivers/staging/rtl8723au/core/rtw_mlme.c
> @@ -2158,9 +2158,9 @@ bool rtw_restructure_ht_ie23a(struct rtw_adapter *padapter, u8 *in_ie,
>  
>  		memset(&ht_capie, 0, sizeof(struct ieee80211_ht_cap));
>  
> -		ht_capie.cap_info = IEEE80211_HT_CAP_SUP_WIDTH_20_40 |
> +		ht_capie.cap_info = cpu_to_le16(IEEE80211_HT_CAP_SUP_WIDTH_20_40 |
>  			IEEE80211_HT_CAP_SGI_20 | IEEE80211_HT_CAP_SGI_40 |
> -			IEEE80211_HT_CAP_TX_STBC | IEEE80211_HT_CAP_DSSSCCK40;
> +			IEEE80211_HT_CAP_TX_STBC | IEEE80211_HT_CAP_DSSSCCK40);
>  
>  		GetHalDefVar8192CUsb(padapter, HAL_DEF_RX_PACKET_OFFSET,
>  				     &rx_packet_offset);
_______________________________________________
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxx
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel




[Index of Archives]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux