[PATCH 0/4] dmaengine: Remove unneeded ERROR checks before clk_xxx

Wan Jiabing wanjiabing at vivo.com
Mon May 16 01:41:35 PDT 2022


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




More information about the linux-arm-kernel mailing list