Skip to content

Commit

Permalink
V4L/DVB: video_ioctl2: don't return, use break
Browse files Browse the repository at this point in the history
You want to be able to reach the debug code at the end of this function,
so don't use return, use break.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
  • Loading branch information
Hans Verkuil authored and Mauro Carvalho Chehab committed May 19, 2010
1 parent 1d94aa3 commit 3f5e182
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/media/video/v4l2-ioctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -1072,7 +1072,7 @@ static long __video_do_ioctl(struct file *file,
id &= ~curr_id;
}
if (i <= index)
return -EINVAL;
break;

v4l2_video_std_construct(p, curr_id, descr);

Expand Down Expand Up @@ -1597,7 +1597,7 @@ static long __video_do_ioctl(struct file *file,
v4l2_std_id std = vfd->current_norm;

if (p->type != V4L2_BUF_TYPE_VIDEO_CAPTURE)
return -EINVAL;
break;

ret = 0;
if (ops->vidioc_g_std)
Expand Down

0 comments on commit 3f5e182

Please sign in to comment.