提交 6abcf98e 编写于 作者: W Wan Jiabing 提交者: Mauro Carvalho Chehab

media: c8sectpfe: Remove unneeded NULL check before clk_disable_unprepare

clk_disable_unprepare() already checks NULL by using IS_ERR_OR_NULL.
Remove unneeded NULL check for fei->c8sectpfeclk.

Link: https://lore.kernel.org/linux-media/20220516131254.13816-1-wanjiabing@vivo.comSigned-off-by: NWan Jiabing <wanjiabing@vivo.com>
Signed-off-by: NMauro Carvalho Chehab <mchehab@kernel.org>
上级 64e46b63
...@@ -907,7 +907,6 @@ static int c8sectpfe_remove(struct platform_device *pdev) ...@@ -907,7 +907,6 @@ static int c8sectpfe_remove(struct platform_device *pdev)
if (readl(fei->io + SYS_OTHER_CLKEN)) if (readl(fei->io + SYS_OTHER_CLKEN))
writel(0, fei->io + SYS_OTHER_CLKEN); writel(0, fei->io + SYS_OTHER_CLKEN);
if (fei->c8sectpfeclk)
clk_disable_unprepare(fei->c8sectpfeclk); clk_disable_unprepare(fei->c8sectpfeclk);
return 0; return 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册