linux-i3c.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] i3c/master: simplify the return expression of i3c_hci_remove()
@ 2022-05-05  2:19 cgel.zte
  2022-05-17 20:36 ` alexandre.belloni
  0 siblings, 1 reply; 2+ messages in thread
From: cgel.zte @ 2022-05-05  2:19 UTC (permalink / raw)
  To: alexandre.belloni
  Cc: npitre, linux-i3c, linux-kernel, Minghao Chi, Zeal Robot

From: Minghao Chi <chi.minghao@zte.com.cn>

Simplify the return expression.

Reported-by: Zeal Robot <zealci@zte.com.cn>
Signed-off-by: Minghao Chi <chi.minghao@zte.com.cn>
---
 drivers/i3c/master/mipi-i3c-hci/core.c | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/drivers/i3c/master/mipi-i3c-hci/core.c b/drivers/i3c/master/mipi-i3c-hci/core.c
index 8c01123dc4ed..6aef5ce43cc1 100644
--- a/drivers/i3c/master/mipi-i3c-hci/core.c
+++ b/drivers/i3c/master/mipi-i3c-hci/core.c
@@ -768,13 +768,8 @@ static int i3c_hci_probe(struct platform_device *pdev)
 static int i3c_hci_remove(struct platform_device *pdev)
 {
 	struct i3c_hci *hci = platform_get_drvdata(pdev);
-	int ret;
 
-	ret = i3c_master_unregister(&hci->master);
-	if (ret)
-		return ret;
-
-	return 0;
+	return i3c_master_unregister(&hci->master);
 }
 
 static const __maybe_unused struct of_device_id i3c_hci_of_match[] = {
-- 
2.25.1



-- 
linux-i3c mailing list
linux-i3c@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-i3c

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] i3c/master: simplify the return expression of i3c_hci_remove()
  2022-05-05  2:19 [PATCH] i3c/master: simplify the return expression of i3c_hci_remove() cgel.zte
@ 2022-05-17 20:36 ` alexandre.belloni
  0 siblings, 0 replies; 2+ messages in thread
From: alexandre.belloni @ 2022-05-17 20:36 UTC (permalink / raw)
  To: cgel.zte
  Cc: Alexandre Belloni, linux-i3c, Zeal Robot, linux-kernel,
	Minghao Chi, npitre

From: Alexandre Belloni <alexandre.belloni@bootlin.com>

On Thu, 5 May 2022 02:19:54 +0000, cgel.zte@gmail.com wrote:
> From: Minghao Chi <chi.minghao@zte.com.cn>
> 
> Simplify the return expression.
> 
> 

Applied, thanks!

[1/1] i3c/master: simplify the return expression of i3c_hci_remove()
      commit: c157a606e7525409208a51bd6663d6da3757d69e

Best regards,
-- 
Alexandre Belloni <alexandre.belloni@bootlin.com>

-- 
linux-i3c mailing list
linux-i3c@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-i3c

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-05-17 20:36 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-05  2:19 [PATCH] i3c/master: simplify the return expression of i3c_hci_remove() cgel.zte
2022-05-17 20:36 ` alexandre.belloni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).