projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0143db6
)
dmaengine: mediatek: simplify the return expression of mtk_uart_apdma_runtime_resume()
author
Liu Shixin
<liushixin2@huawei.com>
Tue, 15 Sep 2020 03:26:22 +0000
(11:26 +0800)
committer
Vinod Koul
<vkoul@kernel.org>
Fri, 18 Sep 2020 07:02:37 +0000
(12:32 +0530)
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>
drivers/dma/mediatek/mtk-uart-apdma.c
patch
|
blob
|
history
diff --git
a/drivers/dma/mediatek/mtk-uart-apdma.c
b/drivers/dma/mediatek/mtk-uart-apdma.c
index
29f1223
..
27c0735
100644
(file)
--- 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 */