[media] v4l: vsp1: Remove the unneeded vsp1_video_buffer video field
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Wed, 21 May 2014 20:39:16 +0000 (17:39 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Tue, 17 Jun 2014 15:04:05 +0000 (12:04 -0300)
The field is assigned but never read, remove it.

This fixes a bug caused by the struct vb2_buffer field not being be the
very first field of the vsp1_video_buffer buffer structure as required
by videobuf2.

Cc: stable@vger.kernel.org
Reported-by: Takanari Hayama <taki@igel.co.jp>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/platform/vsp1/vsp1_video.c
drivers/media/platform/vsp1/vsp1_video.h

index 8a1253e51f04cfa9ddb699c4529e663852fff03e..677e3aa04eeeba137802047d8e1deef07c73785d 100644 (file)
@@ -654,8 +654,6 @@ static int vsp1_video_buffer_prepare(struct vb2_buffer *vb)
        if (vb->num_planes < format->num_planes)
                return -EINVAL;
 
-       buf->video = video;
-
        for (i = 0; i < vb->num_planes; ++i) {
                buf->addr[i] = vb2_dma_contig_plane_dma_addr(vb, i);
                buf->length[i] = vb2_plane_size(vb, i);
index c04d48fa2999946bd7e77a8b050418aba8eee1db..7284320d54339059064eccee78b97186a7715599 100644 (file)
@@ -90,7 +90,6 @@ static inline struct vsp1_pipeline *to_vsp1_pipeline(struct media_entity *e)
 }
 
 struct vsp1_video_buffer {
-       struct vsp1_video *video;
        struct vb2_buffer buf;
        struct list_head queue;