]> git.baikalelectronics.ru Git - uboot.git/commitdiff
firmware: scmi: smccc transport: simplify probe sequence
authorEtienne Carriere <etienne.carriere@linaro.org>
Mon, 8 Nov 2021 07:56:11 +0000 (08:56 +0100)
committerTom Rini <trini@konsulko.com>
Tue, 23 Nov 2021 18:53:03 +0000 (13:53 -0500)
Minor simplification in scmi_smccc_probe() exit sequence.

Cc: Simon Glass <sjg@chromium.org>
Cc: Patrice Chotard <patrice.chotard@foss.st.com>
Cc: Patrick Delaunay <patrick.delaunay@foss.st.com>
Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org>
Reviewed-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
drivers/firmware/scmi/smccc_agent.c

index f0477b91dce9d7366be25c8c2e734bb6384785d4..5e166ca93ee1f4dd332f623800e2278a826b715b 100644 (file)
@@ -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[] = {