All of lore.kernel.org
 help / color / mirror / Atom feed
From: Etienne Carriere <etienne.carriere@linaro.org>
To: u-boot@lists.denx.de
Cc: Patrick Delaunay <patrick.delaunay@foss.st.com>,
	Patrice Chotard <patrice.chotard@foss.st.com>,
	Etienne Carriere <etienne.carriere@linaro.org>,
	Jaehoon Chung <jh80.chung@samsung.com>
Subject: [PATCH 13/14] power: regulator: scmi: simplify scmi_voltd_set_enable()
Date: Fri, 13 May 2022 08:26:21 +0200	[thread overview]
Message-ID: <20220513062622.155433-14-etienne.carriere@linaro.org> (raw)
In-Reply-To: <20220513062622.155433-1-etienne.carriere@linaro.org>

Simplify scmi_voltd_set_enable() exit sequence.

Cc: Jaehoon Chung <jh80.chung@samsung.com>
Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org>
---
 drivers/power/regulator/scmi_regulator.c | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/drivers/power/regulator/scmi_regulator.c b/drivers/power/regulator/scmi_regulator.c
index e0343e913f4..6affa457991 100644
--- a/drivers/power/regulator/scmi_regulator.c
+++ b/drivers/power/regulator/scmi_regulator.c
@@ -43,11 +43,7 @@ static int scmi_voltd_set_enable(struct udevice *dev, bool enable)
 	if (ret)
 		return ret;
 
-	ret = scmi_to_linux_errno(out.status);
-	if (ret)
-		return ret;
-
-	return ret;
+	return scmi_to_linux_errno(out.status);
 }
 
 static int scmi_voltd_get_enable(struct udevice *dev)
-- 
2.25.1


  parent reply	other threads:[~2022-05-13  6:30 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-05-13  6:26 [PATCH 00/14] SCMI multi-channel and optee shm Etienne Carriere
2022-05-13  6:26 ` [PATCH 01/14] firmware: scmi: optee: use TEE shared memory for SCMI messages Etienne Carriere
2022-05-13  6:26 ` [PATCH 02/14] firmware: scmi: optee: fix inline description of PTA_SCMI_CMD_GET_CHANNEL Etienne Carriere
2022-05-13  6:26 ` [PATCH 03/14] firmware: scmi: prepare scmi uclass API to multi-channel Etienne Carriere
2022-05-13  6:26 ` [PATCH 04/14] firmware: scmi: prepare uclass to pass channel reference Etienne Carriere
2022-05-13  6:26 ` [PATCH 05/14] firmware: scmi: factorize scmi transport look up Etienne Carriere
2022-05-13  6:26 ` [PATCH 06/14] firmware: scmi: add multi-channel support Etienne Carriere
2022-05-13  6:26 ` [PATCH 07/14] firmware: scmi: mailbox transport: implement multi-channel Etienne Carriere
2022-05-13  6:26 ` [PATCH 08/14] firmware: scmi: smccc " Etienne Carriere
2022-05-13  6:26 ` [PATCH 09/14] firmware: scmi: optee " Etienne Carriere
2022-05-13  6:26 ` [PATCH 10/14] clk: scmi: support SCMI multi-channel Etienne Carriere
2022-05-27  4:14   ` Sean Anderson
2022-05-13  6:26 ` [PATCH 11/14] reset: " Etienne Carriere
2022-05-13  6:26 ` [PATCH 12/14] power: regulator: " Etienne Carriere
2022-05-16 23:45   ` Jaehoon Chung
2022-05-13  6:26 ` Etienne Carriere [this message]
2022-05-16 23:45   ` [PATCH 13/14] power: regulator: scmi: simplify scmi_voltd_set_enable() Jaehoon Chung
2022-05-13  6:26 ` [PATCH 14/14] firmware: scmi: use multi channel in mailbox, optee and smccc agents Etienne Carriere

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220513062622.155433-14-etienne.carriere@linaro.org \
    --to=etienne.carriere@linaro.org \
    --cc=jh80.chung@samsung.com \
    --cc=patrice.chotard@foss.st.com \
    --cc=patrick.delaunay@foss.st.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.