]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
net: ti: icssg: Remove impossible test
authorAndrew Goodbody <andrew.goodbody@linaro.org>
Wed, 6 Aug 2025 10:56:58 +0000 (11:56 +0100)
committerTom Rini <trini@konsulko.com>
Fri, 15 Aug 2025 19:00:35 +0000 (13:00 -0600)
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>
drivers/net/ti/icssg_prueth.c

index d8df3c9afb068e255ffd6d5080617c4b317fd9f9..12a162b9d688d604429953b14d50a901ae744cf3 100644 (file)
@@ -647,8 +647,6 @@ static int prueth_probe(struct udevice *dev)
                        return -EINVAL;
                }
 
-               if (port_id < 0)
-                       continue;
                if (disabled)
                        continue;