]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
phy: keystone-usb: Do not negate return code
authorAndrew Goodbody <andrew.goodbody@linaro.org>
Wed, 6 Aug 2025 15:47:46 +0000 (16:47 +0100)
committerTom 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

index cfc15203d632e86d13d0d491a357da547e5c1f5a..460efbe768d3c03d954941f916c011a643b26727 100644 (file)
@@ -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);