Message ID | 20171220152456.GA73368@lkp-g5 (mailing list archive) |
---|---|
State | Not Applicable, archived |
Headers | show |
--- a/drivers/usb/typec/tcpm.c +++ b/drivers/usb/typec/tcpm.c @@ -4393,10 +4393,7 @@ int devm_tcpm_psy_register(struct tcpm_p port->psy = devm_power_supply_register(port->dev, &port->psy_desc, &psy_cfg); - if (IS_ERR(port->psy)) - return PTR_ERR(port->psy); - - return 0; + return PTR_ERR_OR_ZERO(port->psy); } struct tcpm_port *tcpm_register_port(struct device *dev, struct tcpc_dev *tcpc)