From: Andrew Goodbody Date: Wed, 6 Aug 2025 10:56:58 +0000 (+0100) Subject: net: ti: icssg: Remove impossible test X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2a61c56dea1d7860d4a44afad3f54814ff0b805b;p=thirdparty%2Fu-boot.git net: ti: icssg: Remove impossible test port_id is an unsigned variable so cannot be negative. Remove the test checking for port_id being less than 0. This issue was found by Smatch. Signed-off-by: Andrew Goodbody --- diff --git a/drivers/net/ti/icssg_prueth.c b/drivers/net/ti/icssg_prueth.c index d8df3c9afb0..12a162b9d68 100644 --- a/drivers/net/ti/icssg_prueth.c +++ b/drivers/net/ti/icssg_prueth.c @@ -647,8 +647,6 @@ static int prueth_probe(struct udevice *dev) return -EINVAL; } - if (port_id < 0) - continue; if (disabled) continue;