mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-04 08:08:54 +00:00
media: vsp1: Use vb2_queue_is_busy()
Use the new vb2_queue_is_busy() helper to replace the open-coded version. Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> Reviewed-by: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
This commit is contained in:
parent
74ff264015
commit
bf7d5ee1ed
1 changed files with 1 additions and 1 deletions
|
@ -1030,7 +1030,7 @@ vsp1_video_streamon(struct file *file, void *fh, enum v4l2_buf_type type)
|
|||
struct vsp1_pipeline *pipe;
|
||||
int ret;
|
||||
|
||||
if (video->queue.owner && video->queue.owner != file->private_data)
|
||||
if (vb2_queue_is_busy(&video->queue, file))
|
||||
return -EBUSY;
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in a new issue