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:
3f48636
)
phy: keystone-usb: Do not negate return code
author
Andrew Goodbody
<andrew.goodbody@linaro.org>
Wed, 6 Aug 2025 15:47:46 +0000
(16:47 +0100)
committer
Tom Rini
<trini@konsulko.com>
Fri, 15 Aug 2025 20:17:30 +0000
(14:17 -0600)
In keystone_usb_init the return code from psc_enable_module should be
returned as is rather than being negated.
This issue was found by Smatch.
Signed-off-by: Andrew Goodbody <andrew.goodbody@linaro.org>
drivers/phy/keystone-usb-phy.c
patch
|
blob
|
history
diff --git
a/drivers/phy/keystone-usb-phy.c
b/drivers/phy/keystone-usb-phy.c
index
cfc1520
..
460efbe
100644
(file)
--- a/
drivers/phy/keystone-usb-phy.c
+++ b/
drivers/phy/keystone-usb-phy.c
@@
-41,7
+41,7
@@
static int keystone_usb_init(struct phy *phy)
rc = psc_enable_module(keystone->psc_domain);
if (rc) {
debug("Cannot enable USB module");
- return
-
rc;
+ return rc;
}
mdelay(10);