diff options
author | Hans Verkuil <hverkuil@xs4all.nl> | 2010-12-31 10:34:32 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2011-01-04 13:47:50 -0500 |
commit | 36f54ff67bc78c6d8dc4a90ac257165e05fdd8da (patch) | |
tree | 9f491c698f7114a4b40bc6f8951d0e67166afe08 /drivers/media/video/v4l2-compat-ioctl32.c | |
parent | 1a5e5af0d2111fdc39c6f2275ed2a9e2e6dd69e2 (diff) |
[media] v4l2-compat-ioctl32: fix compile warning
drivers/media/video/v4l2-compat-ioctl32.c: In function 'get_v4l2_format32':
drivers/media/video/v4l2-compat-ioctl32.c:169:2: warning: case value '0' not in enumerated type 'enum v4l2_buf_type'
drivers/media/video/v4l2-compat-ioctl32.c: In function 'put_v4l2_format32':
drivers/media/video/v4l2-compat-ioctl32.c:200:2: warning: case value '0' not in enumerated type 'enum v4l2_buf_type'
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/v4l2-compat-ioctl32.c')
-rw-r--r-- | drivers/media/video/v4l2-compat-ioctl32.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/media/video/v4l2-compat-ioctl32.c b/drivers/media/video/v4l2-compat-ioctl32.c index 65e6f133dd35..dc82eb83c1d4 100644 --- a/drivers/media/video/v4l2-compat-ioctl32.c +++ b/drivers/media/video/v4l2-compat-ioctl32.c | |||
@@ -165,8 +165,6 @@ static int get_v4l2_format32(struct v4l2_format *kp, struct v4l2_format32 __user | |||
165 | if (copy_from_user(kp, up, sizeof(kp->fmt.raw_data))) | 165 | if (copy_from_user(kp, up, sizeof(kp->fmt.raw_data))) |
166 | return -EFAULT; | 166 | return -EFAULT; |
167 | return 0; | 167 | return 0; |
168 | case 0: | ||
169 | return -EINVAL; | ||
170 | default: | 168 | default: |
171 | printk(KERN_INFO "compat_ioctl32: unexpected VIDIOC_FMT type %d\n", | 169 | printk(KERN_INFO "compat_ioctl32: unexpected VIDIOC_FMT type %d\n", |
172 | kp->type); | 170 | kp->type); |
@@ -196,8 +194,6 @@ static int put_v4l2_format32(struct v4l2_format *kp, struct v4l2_format32 __user | |||
196 | if (copy_to_user(up, kp, sizeof(up->fmt.raw_data))) | 194 | if (copy_to_user(up, kp, sizeof(up->fmt.raw_data))) |
197 | return -EFAULT; | 195 | return -EFAULT; |
198 | return 0; | 196 | return 0; |
199 | case 0: | ||
200 | return -EINVAL; | ||
201 | default: | 197 | default: |
202 | printk(KERN_INFO "compat_ioctl32: unexpected VIDIOC_FMT type %d\n", | 198 | printk(KERN_INFO "compat_ioctl32: unexpected VIDIOC_FMT type %d\n", |
203 | kp->type); | 199 | kp->type); |