This is an automatic generated email to let you know that the following patch 
were queued at the 
http://git.linuxtv.org/v4l-dvb.git tree:

Subject: V4L/DVB: video_ioctl2: don't return, use break
Author:  Hans Verkuil <[email protected]>
Date:    Tue Apr 6 08:14:11 2010 -0300

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 <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>

 drivers/media/video/v4l2-ioctl.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

---

http://git.linuxtv.org/v4l-dvb.git?a=commitdiff;h=bfb13f21aae7878f8f31723f578467b012595f05

diff --git a/drivers/media/video/v4l2-ioctl.c b/drivers/media/video/v4l2-ioctl.c
index 807e71c..e410b25 100644
--- a/drivers/media/video/v4l2-ioctl.c
+++ b/drivers/media/video/v4l2-ioctl.c
@@ -1071,7 +1071,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);
 
@@ -1596,7 +1596,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)

_______________________________________________
linuxtv-commits mailing list
[email protected]
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits

Reply via email to