diff mbox series

[-next] dmaengine: mediatek: simplify the return expression of mtk_uart_apdma_runtime_resume()

Message ID 20200915032622.1772309-1-liushixin2@huawei.com (mailing list archive)
State New, archived
Headers show
Series [-next] dmaengine: mediatek: simplify the return expression of mtk_uart_apdma_runtime_resume() | expand

Commit Message

Liu Shixin Sept. 15, 2020, 3:26 a.m. UTC
Simplify the return expression.

Signed-off-by: Liu Shixin <liushixin2@huawei.com>
---
 drivers/dma/mediatek/mtk-uart-apdma.c | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

Comments

Vinod Koul Sept. 18, 2020, 7:03 a.m. UTC | #1
On 15-09-20, 11:26, Liu Shixin wrote:
> Simplify the return expression.
> 

Applied, thanks
diff mbox series

Patch

diff --git a/drivers/dma/mediatek/mtk-uart-apdma.c b/drivers/dma/mediatek/mtk-uart-apdma.c
index 29f1223b285a..27c07350971d 100644
--- a/drivers/dma/mediatek/mtk-uart-apdma.c
+++ b/drivers/dma/mediatek/mtk-uart-apdma.c
@@ -624,14 +624,9 @@  static int mtk_uart_apdma_runtime_suspend(struct device *dev)
 
 static int mtk_uart_apdma_runtime_resume(struct device *dev)
 {
-	int ret;
 	struct mtk_uart_apdmadev *mtkd = dev_get_drvdata(dev);
 
-	ret = clk_prepare_enable(mtkd->clk);
-	if (ret)
-		return ret;
-
-	return 0;
+	return clk_prepare_enable(mtkd->clk);
 }
 #endif /* CONFIG_PM */