[media] coda: stop setting bytesused in buf_prepare
authorPhilipp Zabel <p.zabel@pengutronix.de>
Thu, 23 May 2013 13:42:55 +0000 (10:42 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 3 Jun 2013 19:01:29 +0000 (16:01 -0300)
The application must have filled the bytesused field,
don't overwrite it here.

Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Kamil Debski <k.debski@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/platform/coda.c

index b53c74855702c3f256a65c9fbc35e960bea7931a..109b9389c0c95addbd1f68f4e7b6ddad20ccea80 100644 (file)
@@ -869,8 +869,6 @@ static int coda_buf_prepare(struct vb2_buffer *vb)
                return -EINVAL;
        }
 
-       vb2_set_plane_payload(vb, 0, q_data->sizeimage);
-
        return 0;
 }