mirror of https://gitee.com/openkylin/linux.git
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>
This commit is contained in:
parent
0143db65b0
commit
ceae069803
|
@ -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 */
|
||||
|
||||
|
|
Loading…
Reference in New Issue