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.com Signed-off-by: Wan Jiabing <wanjiabing@vivo.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
This commit is contained in:
parent
64e46b637b
commit
6abcf98eec
1 changed files with 1 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue