Commit ceae0698 authored by Liu Shixin's avatar Liu Shixin Committed by Vinod Koul
Browse files

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

parent 0143db65
Loading
Loading
Loading
Loading
+1 −6
Original line number Diff line number Diff line
@@ -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 */