Re: [PATCH] staging: wlan-ng: Fix sparse warning: cast to restricted __le16.

2017-08-18 Thread Ricardo Silva
Hi, On 08/09/2017 11:35 PM, AbdAllah-MEZITI wrote: > The same structure is used in both side, so we dont need to cast. I believe there were no casts there, but calls to le16_to_cpu(), meaning there was previously a bug or the data being accessed was really stored in little-endian format, so we

Re: [PATCH] staging: wlan-ng: Fix sparse warning: cast to restricted __le16.

2017-08-18 Thread Ricardo Silva
Hi, On 08/09/2017 11:35 PM, AbdAllah-MEZITI wrote: > The same structure is used in both side, so we dont need to cast. I believe there were no casts there, but calls to le16_to_cpu(), meaning there was previously a bug or the data being accessed was really stored in little-endian format, so we

[PATCH] staging: wlan-ng: Fix sparse warning: cast to restricted __le16.

2017-08-09 Thread AbdAllah-MEZITI
The same structure is used in both side, so we dont need to cast. This will fix the following sparse warnings: drivers/staging/wlan-ng/prism2sta.c:1139:13: warning: cast to restricted __le16 drivers/staging/wlan-ng/prism2sta.c:1150:24: warning: cast to restricted __le16

[PATCH] staging: wlan-ng: Fix sparse warning: cast to restricted __le16.

2017-08-09 Thread AbdAllah-MEZITI
The same structure is used in both side, so we dont need to cast. This will fix the following sparse warnings: drivers/staging/wlan-ng/prism2sta.c:1139:13: warning: cast to restricted __le16 drivers/staging/wlan-ng/prism2sta.c:1150:24: warning: cast to restricted __le16