Commit 8919a25c authored by Dan Carpenter's avatar Dan Carpenter Committed by Mauro Carvalho Chehab
Browse files

media: bdisp: remove unnecessary IS_ERR() check



The "bdisp->clock" variable cannot be an error pointer here.  No need to
check.

Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarHans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@kernel.org>
parent 8ca62a18
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -1394,7 +1394,6 @@ static int bdisp_probe(struct platform_device *pdev)
	bdisp_debugfs_remove(bdisp);
	v4l2_device_unregister(&bdisp->v4l2_dev);
err_clk:
	if (!IS_ERR(bdisp->clock))
	clk_unprepare(bdisp->clock);
err_wq:
	destroy_workqueue(bdisp->work_queue);