mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-06-02 09:46:37 +03:00
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 <andrew.goodbody@linaro.org>
This commit is contained in:
committed by
Tom Rini
parent
3f486367bc
commit
26d9bd1ccd
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user