From: Philipp Zabel Date: Thu, 23 May 2013 13:42:55 +0000 (-0300) Subject: [media] coda: stop setting bytesused in buf_prepare X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=f609222a051037ebcbb9c15c90f456c77a23be13;p=openwrt%2Fstaging%2Fblogic.git [media] coda: stop setting bytesused in buf_prepare The application must have filled the bytesused field, don't overwrite it here. Signed-off-by: Philipp Zabel Signed-off-by: Kamil Debski Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/platform/coda.c b/drivers/media/platform/coda.c index b53c74855702..109b9389c0c9 100644 --- a/drivers/media/platform/coda.c +++ b/drivers/media/platform/coda.c @@ -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; }