power: regulator: scmi: simplify scmi_voltd_set_enable()

Simplify scmi_voltd_set_enable() exit sequence.

Cc: Jaehoon Chung <jh80.chung@samsung.com>
Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org>
Reviewed-by: Jaehoon Chung <jh80.chung@samsung.com>
This commit is contained in:
Etienne Carriere 2022-05-31 18:09:28 +02:00 committed by Tom Rini
parent ff33ed32b6
commit db59fef0f8

View file

@ -51,11 +51,7 @@ static int scmi_voltd_set_enable(struct udevice *dev, bool enable)
if (ret) if (ret)
return ret; return ret;
ret = scmi_to_linux_errno(out.status); return scmi_to_linux_errno(out.status);
if (ret)
return ret;
return ret;
} }
static int scmi_voltd_get_enable(struct udevice *dev) static int scmi_voltd_get_enable(struct udevice *dev)