2023-02-09 18:11:19

by Stanislaw Gruszka

[permalink] [raw]
Subject: Re: [PATCH] wifi: rt2x00: remove impossible test condition

On Thu, Feb 09, 2023 at 02:35:50PM +0530, Deepak R Varma wrote:
> Variable vga_gain is a u8 and will never attain a value less than 0.
> Hence testing it for less 0 is impossible.
> Issue identified using unsigned_lesser_than_zero.cocci Coccinelle
> semantic patch. The issue was also reported by Kernel test Robot.
>
> Reported-by: kernel test robot <[email protected]>
> Reported-by: Dan Carpenter <[email protected]>
> Signed-off-by: Deepak R Varma <[email protected]>
Acked-by: Stanislaw Gruszka <[email protected]>