diff options
| author | Andrew Goodbody <[email protected]> | 2025-08-06 11:56:58 +0100 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2025-08-15 13:00:35 -0600 |
| commit | 2a61c56dea1d7860d4a44afad3f54814ff0b805b (patch) | |
| tree | e58b89222ec65d2028d6266ebfb4a341a0990c7e /drivers | |
| parent | 1edd1fd539f52cadcb57c0c79c504f46f9540045 (diff) | |
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 <[email protected]>
Diffstat (limited to 'drivers')
| -rw-r--r-- | drivers/net/ti/icssg_prueth.c | 2 |
1 files changed, 0 insertions, 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; |
