[v2,3/3] V4l2: OMAP: VOUT: Minor Cleanup, removing the unnecessary code.
Commit Message
Minor changes to remove the unused code from omap_vout driver.
Signed-off-by: Amber Jain <amber@ti.com>
Signed-off-by: Samreen <samreen@ti.com>
---
Changes from v1:
- None.
drivers/media/video/omap/omap_vout.c | 6 ------
1 files changed, 0 insertions(+), 6 deletions(-)
Comments
> -----Original Message-----
> From: JAIN, AMBER
> Sent: Thursday, July 07, 2011 5:51 PM
> To: linux-media@vger.kernel.org
> Cc: Hiremath, Vaibhav; JAIN, AMBER; Nilofer, Samreen
> Subject: [PATCH v2 3/3] V4l2: OMAP: VOUT: Minor Cleanup, removing the
> unnecessary code.
>
> Minor changes to remove the unused code from omap_vout driver.
>
> Signed-off-by: Amber Jain <amber@ti.com>
> Signed-off-by: Samreen <samreen@ti.com>
> ---
> Changes from v1:
> - None.
>
> 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 7d3410a..548f4cd 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,
> struct v4l2_fmtdesc *fmt)
> {
> int index = fmt->index;
> - enum v4l2_buf_type type = fmt->type;
>
> - fmt->index = index;
> - fmt->type = type;
> if (index >= NUM_OUTPUT_FORMATS)
> return -EINVAL;
>
> @@ -1213,10 +1210,7 @@ static int vidioc_enum_fmt_vid_overlay(struct file
> *file, void *fh,
> struct v4l2_fmtdesc *fmt)
> {
> int index = fmt->index;
> - enum v4l2_buf_type type = fmt->type;
>
> - fmt->index = index;
> - fmt->type = type;
> if (index >= NUM_OUTPUT_FORMATS)
> return -EINVAL;
>
[Hiremath, Vaibhav] Acked-By: Vaibhav Hiremath <hvaibhav@ti.com>
Thanks,
Vaibhav
> --
> 1.7.1
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
@@ -1041,10 +1041,7 @@ static int vidioc_enum_fmt_vid_out(struct file *file, void *fh,
struct v4l2_fmtdesc *fmt)
{
int index = fmt->index;
- enum v4l2_buf_type type = fmt->type;
- fmt->index = index;
- fmt->type = type;
if (index >= NUM_OUTPUT_FORMATS)
return -EINVAL;
@@ -1213,10 +1210,7 @@ static int vidioc_enum_fmt_vid_overlay(struct file *file, void *fh,
struct v4l2_fmtdesc *fmt)
{
int index = fmt->index;
- enum v4l2_buf_type type = fmt->type;
- fmt->index = index;
- fmt->type = type;
if (index >= NUM_OUTPUT_FORMATS)
return -EINVAL;