From: Ricardo Ribalda Date: Wed, 10 Apr 2024 21:54:40 +0000 (+0000) Subject: media: platform: sti: hva: clk_unprepare unconditionally X-Git-Tag: v6.10-rc1~135^2~217 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e932a85dae9ec894b78feb4d5252e708acaa0261;p=thirdparty%2Fkernel%2Flinux.git media: platform: sti: hva: clk_unprepare unconditionally hva->clk cannot be NULL at this point. Simplify the code and make smatch happy: drivers/media/platform/st/sti/hva/hva-hw.c:412 hva_hw_probe() warn: 'hva->clk' from clk_prepare() not released on lines: 412 Signed-off-by: Ricardo Ribalda Signed-off-by: Hans Verkuil --- diff --git a/drivers/media/platform/st/sti/hva/hva-hw.c b/drivers/media/platform/st/sti/hva/hva-hw.c index fe4ea2e7f37e3..fcb18fb52fdd7 100644 --- a/drivers/media/platform/st/sti/hva/hva-hw.c +++ b/drivers/media/platform/st/sti/hva/hva-hw.c @@ -406,8 +406,7 @@ err_pm: err_disable: pm_runtime_disable(dev); err_clk: - if (hva->clk) - clk_unprepare(hva->clk); + clk_unprepare(hva->clk); return ret; }