Commit 6abcf98e authored by Wan Jiabing's avatar Wan Jiabing Committed by Mauro Carvalho Chehab
Browse files

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: default avatarWan Jiabing <wanjiabing@vivo.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@kernel.org>
parent 64e46b63
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -907,7 +907,6 @@ 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);

	return 0;