mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-01 08:04:22 +08:00
media: bdisp: remove unnecessary IS_ERR() check
The "bdisp->clock" variable cannot be an error pointer here. No need to check. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
This commit is contained in:
parent
8ca62a187a
commit
8919a25c21
@ -1394,8 +1394,7 @@ err_remove:
|
||||
bdisp_debugfs_remove(bdisp);
|
||||
v4l2_device_unregister(&bdisp->v4l2_dev);
|
||||
err_clk:
|
||||
if (!IS_ERR(bdisp->clock))
|
||||
clk_unprepare(bdisp->clock);
|
||||
clk_unprepare(bdisp->clock);
|
||||
err_wq:
|
||||
destroy_workqueue(bdisp->work_queue);
|
||||
return ret;
|
||||
|
Loading…
Reference in New Issue
Block a user