dmaengine.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/4] dmaengine: Remove unneeded ERROR checks before clk_xxx
@ 2022-05-16  8:41 Wan Jiabing
  2022-05-16  8:41 ` [PATCH 1/4] dmaengine: ep93xx_dma: Remove unneeded ERROR check before clk_put Wan Jiabing
                   ` (3 more replies)
  0 siblings, 4 replies; 12+ messages in thread
From: Wan Jiabing @ 2022-05-16  8:41 UTC (permalink / raw)
  To: Vinod Koul, Orson Zhai, Baolin Wang, Chunyan Zhang,
	Linus Walleij, dmaengine, linux-kernel, linux-arm-kernel
  Cc: Wan Jiabing

This patch set tries to remove unneeded ERROR check before clk_xxx.
clk_put() already uses !clk and IS_ERR(clk) to check ERROR or NULL.
clk_disable_unprepare() already checks ERROR by using IS_ERR_OR_NULL.

Remove unneeded ERROR or NULL check before them.

Wan Jiabing (4):
  dmaengine: ep93xx_dma: Remove unneeded ERROR check before clk_put
  dmaengine: sprd-dma: Remove unneeded ERROR check before clk_disable_unprepare
  dmaengine: ste_dma40: Remove unneeded ERROR and NULL check in ste_dma40
  dmaengine: xgene-dma: Remove unneeded ERROR check before clk_disable_unprepare

 drivers/dma/ep93xx_dma.c |  3 +--
 drivers/dma/sprd-dma.c   |  7 +------
 drivers/dma/ste_dma40.c  | 10 ++++------
 drivers/dma/xgene-dma.c  |  6 ++----
 4 files changed, 8 insertions(+), 18 deletions(-)

-- 
2.36.1


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

end of thread, other threads:[~2022-05-19  6:34 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-16  8:41 [PATCH 0/4] dmaengine: Remove unneeded ERROR checks before clk_xxx Wan Jiabing
2022-05-16  8:41 ` [PATCH 1/4] dmaengine: ep93xx_dma: Remove unneeded ERROR check before clk_put Wan Jiabing
2022-05-18  7:12   ` Krzysztof Kozlowski
2022-05-16  8:41 ` [PATCH 2/4] dmaengine: sprd-dma: Remove unneeded ERROR check before clk_disable_unprepare Wan Jiabing
2022-05-17 15:13   ` Krzysztof Kozlowski
2022-05-18  2:44     ` Jiabing Wan
2022-05-18  7:10       ` Krzysztof Kozlowski
2022-05-18  7:12   ` Krzysztof Kozlowski
2022-05-16  8:41 ` [PATCH 3/4] dmaengine: ste_dma40: Remove unneeded ERROR and NULL check in ste_dma40 Wan Jiabing
2022-05-18  7:15   ` Krzysztof Kozlowski
2022-05-19  6:34     ` Jiabing Wan
2022-05-16  8:41 ` [PATCH 4/4] dmaengine: xgene-dma: Remove unneeded ERROR check before clk_disable_unprepare Wan Jiabing

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).