Re: [PATCH][next] wifi: rt2x00: remove redundant check if u8 array element is less than zero

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

 



Colin Ian King <colin.i.king@xxxxxxxxx> wrote:

> The check on vga_gain[ch_idx] being less than zero is always false since
> vga_gain is a u8 array. Clean up the code by removing the check and the
> following assignment. Cleans up clang scan build warning:
> 
> drivers/net/wireless/ralink/rt2x00/rt2800lib.c:9704:26: warning:
> result of comparison of unsigned expression < 0 is always
> false [-Wtautological-unsigned-zero-compare]
> 
> Signed-off-by: Colin Ian King <colin.i.king@xxxxxxxxx>

Patch applied to wireless-next.git, thanks.

b2172a9330b5 wifi: rt2x00: remove redundant check if u8 array element is less than zero

-- 
https://patchwork.kernel.org/project/linux-wireless/patch/20230920121240.120455-1-colin.i.king@xxxxxxxxx/

https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches




[Index of Archives]     [Kernel Development]     [Kernel Announce]     [Kernel Newbies]     [Linux Networking Development]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Device Mapper]

  Powered by Linux