diff options
Diffstat (limited to 'drivers/media')
-rw-r--r-- | drivers/media/video/omap/omap_vout.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/media/video/omap/omap_vout.c b/drivers/media/video/omap/omap_vout.c index a2f9651b7be7..b5ef36222440 100644 --- a/drivers/media/video/omap/omap_vout.c +++ b/drivers/media/video/omap/omap_vout.c | |||
@@ -1041,10 +1041,7 @@ static int vidioc_enum_fmt_vid_out(struct file *file, void *fh, | |||
1041 | struct v4l2_fmtdesc *fmt) | 1041 | struct v4l2_fmtdesc *fmt) |
1042 | { | 1042 | { |
1043 | int index = fmt->index; | 1043 | int index = fmt->index; |
1044 | enum v4l2_buf_type type = fmt->type; | ||
1045 | 1044 | ||
1046 | fmt->index = index; | ||
1047 | fmt->type = type; | ||
1048 | if (index >= NUM_OUTPUT_FORMATS) | 1045 | if (index >= NUM_OUTPUT_FORMATS) |
1049 | return -EINVAL; | 1046 | return -EINVAL; |
1050 | 1047 | ||
@@ -1213,10 +1210,7 @@ static int vidioc_enum_fmt_vid_overlay(struct file *file, void *fh, | |||
1213 | struct v4l2_fmtdesc *fmt) | 1210 | struct v4l2_fmtdesc *fmt) |
1214 | { | 1211 | { |
1215 | int index = fmt->index; | 1212 | int index = fmt->index; |
1216 | enum v4l2_buf_type type = fmt->type; | ||
1217 | 1213 | ||
1218 | fmt->index = index; | ||
1219 | fmt->type = type; | ||
1220 | if (index >= NUM_OUTPUT_FORMATS) | 1214 | if (index >= NUM_OUTPUT_FORMATS) |
1221 | return -EINVAL; | 1215 | return -EINVAL; |
1222 | 1216 | ||