Re: [PATCH] wifi: rt2x00: remove impossible test condition
From: Stanislaw Gruszka
Date: Thu Feb 09 2023 - 13:11:18 EST
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 <lkp@xxxxxxxxx>
> Reported-by: Dan Carpenter <dan.carpenter@xxxxxxxxxx>
> Signed-off-by: Deepak R Varma <drv@xxxxxxxxx>
Acked-by: Stanislaw Gruszka <stf_xl@xxxxx>