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 <andrew.goodbody@linaro.org>
This commit is contained in:
Andrew Goodbody 2025-08-06 11:56:58 +01:00 committed by Tom Rini
parent 1edd1fd539
commit 2a61c56dea

View File

@ -647,8 +647,6 @@ static int prueth_probe(struct udevice *dev)
return -EINVAL;
}
if (port_id < 0)
continue;
if (disabled)
continue;