[PATCH] net: ti: icssg: Remove impossible test

Andrew Goodbody andrew.goodbody at linaro.org
Wed Aug 6 12:56:58 CEST 2025


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 <andrew.goodbody at linaro.org>
---
 drivers/net/ti/icssg_prueth.c | 2 --
 1 file changed, 2 deletions(-)

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;
 

---
base-commit: 007610da2cca405ea7739fc120d90085be4b6ac2
change-id: 20250806-net_ti_icssg-e721cc6c3c80

Best regards,
-- 
Andrew Goodbody <andrew.goodbody at linaro.org>



More information about the U-Boot mailing list