summaryrefslogtreecommitdiffstats
path: root/drivers/media
diff options
context:
space:
mode:
authorWan Jiabing <wanjiabing@vivo.com>2022-05-16 14:12:54 +0100
committerMauro Carvalho Chehab <mchehab@kernel.org>2022-07-08 12:05:01 +0100
commit6abcf98eec85884f11ce64fcbe0c229c27244d21 (patch)
tree8d7573ad3c2ca5d40e2c6438b7b9bbf98e41ee51 /drivers/media
parent64e46b637bbafc774e58dfb57031f48f167e34d9 (diff)
downloadlinux-6abcf98eec85884f11ce64fcbe0c229c27244d21.tar.bz2
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>
Diffstat (limited to 'drivers/media')
-rw-r--r--drivers/media/platform/st/sti/c8sectpfe/c8sectpfe-core.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/media/platform/st/sti/c8sectpfe/c8sectpfe-core.c b/drivers/media/platform/st/sti/c8sectpfe/c8sectpfe-core.c
index d60908ec9ea7..cefe6b7bfdc4 100644
--- a/drivers/media/platform/st/sti/c8sectpfe/c8sectpfe-core.c
+++ b/drivers/media/platform/st/sti/c8sectpfe/c8sectpfe-core.c
@@ -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;
}