Re: [PATCH 7/9] staging: rtl8723bs: Fix incorrect type in argument warnings
From: Joe Perches
Date: Tue Nov 12 2019 - 12:12:02 EST
On Tue, 2019-11-12 at 11:55 -0500, Javier F. Arias wrote:
> Fix incorrect type in declarations to solve the 'incorrect
> type in argument 3' warnings in the rtw_get_ie function calls.
> Issue found by Sparse.
[]
> diff --git a/drivers/staging/rtl8723bs/os_dep/ioctl_linux.c b/drivers/staging/rtl8723bs/os_dep/ioctl_linux.c
[]
> @@ -83,7 +83,7 @@ static char *translate_scan(struct adapter *padapter,
> {
> struct iw_event iwe;
> u16 cap;
> - u32 ht_ielen = 0;
> + sint ht_ielen = 0;
more likely the rtw_get_ie function should used u32
and not sint.
one day a sed of 's/\bsint\b/int/g' would be good too.