[media] stk1160: Remove redundant vb2_buf payload set
Calling vb2_set_plane_payload is enough, there's no need to set the planes[] bytesused field. Remove it. Signed-off-by: Ezequiel Garcia <ezequiel@vanguardiasur.com.ar> Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
This commit is contained in:
committed by
Mauro Carvalho Chehab
parent
03c6bdfc65
commit
faccb05ca8
@ -98,7 +98,6 @@ void stk1160_buffer_done(struct stk1160 *dev)
|
||||
|
||||
buf->vb.sequence = dev->sequence++;
|
||||
buf->vb.field = V4L2_FIELD_INTERLACED;
|
||||
buf->vb.vb2_buf.planes[0].bytesused = buf->bytesused;
|
||||
buf->vb.vb2_buf.timestamp = ktime_get_ns();
|
||||
|
||||
vb2_set_plane_payload(&buf->vb.vb2_buf, 0, buf->bytesused);
|
||||
|
Reference in New Issue
Block a user