Commit 6abcf98e authored by Wan Jiabing's avatar Wan Jiabing Committed by 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: default avatarWan Jiabing <wanjiabing@vivo.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@kernel.org>
parent 64e46b63
......@@ -907,8 +907,7 @@ static int c8sectpfe_remove(struct platform_device *pdev)
if (readl(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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment