git.openpandora.org
/
pandora-u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1edd1fd
)
net: ti: icssg: Remove impossible test
author
Andrew Goodbody
<andrew.goodbody@linaro.org>
Wed, 6 Aug 2025 10:56:58 +0000
(11:56 +0100)
committer
Tom 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
patch
|
blob
|
history
diff --git
a/drivers/net/ti/icssg_prueth.c
b/drivers/net/ti/icssg_prueth.c
index
d8df3c9
..
12a162b
100644
(file)
--- 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;