Commit e932a85d authored by Ricardo Ribalda's avatar Ricardo Ribalda Committed by Hans Verkuil
Browse files

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: default avatarRicardo Ribalda <ribalda@chromium.org>
Signed-off-by: default avatarHans Verkuil <hverkuil-cisco@xs4all.nl>
parent 1e5dd099
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -406,7 +406,6 @@ int hva_hw_probe(struct platform_device *pdev, struct hva_dev *hva)
err_disable:
	pm_runtime_disable(dev);
err_clk:
	if (hva->clk)
	clk_unprepare(hva->clk);

	return ret;