mirror of
https://github.com/edk2-porting/linux-next.git
synced 2025-01-09 14:14:00 +08:00
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
@ -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…
Reference in New Issue
Block a user