Colin Ian King <[email protected]> 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 <[email protected]>
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/[email protected]/
https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches