Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dmaengine: mediatek: simplify the return expression of mtk_uart_apdma_runtime_resume()

Simplify the return expression.

Signed-off-by: Liu Shixin <liushixin2@huawei.com>
Link: https://lore.kernel.org/r/20200915032622.1772309-1-liushixin2@huawei.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>

authored by

Liu Shixin and committed by
Vinod Koul
ceae0698 0143db65

+1 -6
+1 -6
drivers/dma/mediatek/mtk-uart-apdma.c
··· 624 624 625 625 static int mtk_uart_apdma_runtime_resume(struct device *dev) 626 626 { 627 - int ret; 628 627 struct mtk_uart_apdmadev *mtkd = dev_get_drvdata(dev); 629 628 630 - ret = clk_prepare_enable(mtkd->clk); 631 - if (ret) 632 - return ret; 633 - 634 - return 0; 629 + return clk_prepare_enable(mtkd->clk); 635 630 } 636 631 #endif /* CONFIG_PM */ 637 632