This is an automatic generated email to let you know that the following patch 
were queued:

Subject: media: c8sectpfe: Remove unneeded NULL check before 
clk_disable_unprepare
Author:  Wan Jiabing <[email protected]>
Date:    Mon May 16 14:12:54 2022 +0100

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/[email protected]
Signed-off-by: Wan Jiabing <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>

 drivers/media/platform/st/sti/c8sectpfe/c8sectpfe-core.c | 3 +--
 1 file changed, 1 insertion(+), 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;
 }

_______________________________________________
linuxtv-commits mailing list
[email protected]
https://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits

Reply via email to