net: ti: icssg-prueth: Fix signedness bug in prueth_init_tx_chns()
authorDan Carpenter <dan.carpenter@linaro.org>
Tue, 26 Sep 2023 14:05:59 +0000 (17:05 +0300)
committerDavid S. Miller <davem@davemloft.net>
Wed, 4 Oct 2023 09:29:55 +0000 (10:29 +0100)
commita325f174d70828f62872847b703206566dcdb64c
tree8a399a875d549703163c962e37c86273810f3462
parent37d4f55567982e445f86dc0ff4ecfa72921abfe8
net: ti: icssg-prueth: Fix signedness bug in prueth_init_tx_chns()

The "tx_chn->irq" variable is unsigned so the error checking does not
work correctly.

Fixes: 128d5874c082 ("net: ti: icssg-prueth: Add ICSSG ethernet driver")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Reviewed-by: Roger Quadros <rogerq@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ti/icssg/icssg_prueth.c