summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Goodbody <[email protected]>2025-08-06 16:47:46 +0100
committerTom Rini <[email protected]>2025-08-15 14:17:30 -0600
commit26d9bd1ccd6b344d1cc9ddb3d50981b106fed3b8 (patch)
tree0d5123a4f2b2d1707d7d36b029a5b0729d0c8930
parent3f486367bc8ba415fa0acbe72e57bfbfe3ffaca1 (diff)
phy: keystone-usb: Do not negate return code
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 <[email protected]>
-rw-r--r--drivers/phy/keystone-usb-phy.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/phy/keystone-usb-phy.c b/drivers/phy/keystone-usb-phy.c
index cfc15203d63..460efbe768d 100644
--- 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);