[PATCH 5/5] firmware: scmi: smccc transport: simplify probe sequence
Etienne Carriere
etienne.carriere at linaro.org
Mon Nov 8 08:56:11 CET 2021
Minor simplification in scmi_smccc_probe() exit sequence.
Cc: Simon Glass <sjg at chromium.org>
Cc: Patrice Chotard <patrice.chotard at foss.st.com>
Cc: Patrick Delaunay <patrick.delaunay at foss.st.com>
Signed-off-by: Etienne Carriere <etienne.carriere at linaro.org>
---
Changes since v1:
- No change. Patch re-send.
---
drivers/firmware/scmi/smccc_agent.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/drivers/firmware/scmi/smccc_agent.c b/drivers/firmware/scmi/smccc_agent.c
index f0477b91dc..5e166ca93e 100644
--- a/drivers/firmware/scmi/smccc_agent.c
+++ b/drivers/firmware/scmi/smccc_agent.c
@@ -65,12 +65,10 @@ static int scmi_smccc_of_to_plat(struct udevice *dev)
chan->func_id = func_id;
ret = scmi_dt_get_smt_buffer(dev, &chan->smt);
- if (ret) {
+ if (ret)
dev_err(dev, "Failed to get smt resources: %d\n", ret);
- return ret;
- }
- return 0;
+ return ret;
}
static const struct udevice_id scmi_smccc_ids[] = {
--
2.17.1
More information about the U-Boot
mailing list