upstream: [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)
committerChanho Park <chanho61.park@samsung.com>
Tue, 18 Nov 2014 02:48:05 +0000 (11:48 +0900)
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 42301a4..a711297 100644 (file)
@@ -878,8 +878,6 @@ static int coda_buf_prepare(struct vb2_buffer *vb)
                return -EINVAL;
        }
 
-       vb2_set_plane_payload(vb, 0, q_data->sizeimage);
-
        return 0;
 }