Skip to content

Commit ceae069

Browse files
Liu Shixinvinodkoul
authored andcommitted
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>
1 parent 0143db6 commit ceae069

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

‎drivers/dma/mediatek/mtk-uart-apdma.c‎

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -624,14 +624,9 @@ static int mtk_uart_apdma_runtime_suspend(struct device *dev)
624624

625625
static int mtk_uart_apdma_runtime_resume(struct device *dev)
626626
{
627-
int ret;
628627
struct mtk_uart_apdmadev *mtkd = dev_get_drvdata(dev);
629628

630-
ret = clk_prepare_enable(mtkd->clk);
631-
if (ret)
632-
return ret;
633-
634-
return 0;
629+
return clk_prepare_enable(mtkd->clk);
635630
}
636631
#endif /* CONFIG_PM */
637632

0 commit comments

Comments
 (0)