Thread (1 message) 1 message, 1 author, 2023-02-09

Re: [PATCH] wifi: rt2x00: remove impossible test condition

From: Stanislaw Gruszka <stf_xl@wp.pl>
Date: 2023-02-09 18:11:19
Also in: linux-wireless, lkml

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 <redacted>
Reported-by: Dan Carpenter <redacted>
Signed-off-by: Deepak R Varma <redacted>
Acked-by: Stanislaw Gruszka <stf_xl@wp.pl>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help