aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/dma
diff options
context:
space:
mode:
authorLiu Shixin <liushixin2@huawei.com>2020-09-15 11:26:22 +0800
committerVinod Koul <vkoul@kernel.org>2020-09-18 12:32:37 +0530
commitceae069803ef04f733c594dc196cc0626639be49 (patch)
tree068dd9b4b42973736d9dec31c317c1e852503db9 /drivers/dma
parentdmaengine: ioat: Make two symbols static (diff)
downloadlinux-dev-ceae069803ef04f733c594dc196cc0626639be49.tar.xz
linux-dev-ceae069803ef04f733c594dc196cc0626639be49.zip
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>
Diffstat (limited to 'drivers/dma')
-rw-r--r--drivers/dma/mediatek/mtk-uart-apdma.c7
1 files changed, 1 insertions, 6 deletions
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 */