Re: [PATCH] media: coda: remove duplicated call of fh_to_ctx in vidioc_s_fmt_vid_out

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 21 August 2012 08:47, Richard Zhao <richard.zhao@xxxxxxxxxxxxx> wrote:
> Signed-off-by: Richard Zhao <richard.zhao@xxxxxxxxxxxxx>
> ---
>  drivers/media/platform/coda.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/media/platform/coda.c b/drivers/media/platform/coda.c
> index 6908514..69ff0d3 100644
> --- a/drivers/media/platform/coda.c
> +++ b/drivers/media/platform/coda.c
> @@ -501,7 +501,7 @@ static int vidioc_s_fmt_vid_out(struct file *file, void *priv,
>         if (ret)
>                 return ret;
>
> -       ret = vidioc_s_fmt(fh_to_ctx(priv), f);
> +       ret = vidioc_s_fmt(ctx, f);
>         if (ret)
>                 ctx->colorspace = f->fmt.pix.colorspace;
>
> --
> 1.7.9.5
>
>

Good catch.

Acked-by: Javier Martin <javier.martin@xxxxxxxxxxxxxxxxx>

-- 
Javier Martin
Vista Silicon S.L.
CDTUC - FASE C - Oficina S-345
Avda de los Castros s/n
39005- Santander. Cantabria. Spain
+34 942 25 32 60
www.vista-silicon.com
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux