]> git.baikalelectronics.ru Git - kernel.git/commit
[media] coda: reuse src_bufs in coda_job_ready
authorPhilipp Zabel <p.zabel@pengutronix.de>
Thu, 9 Jul 2015 10:10:20 +0000 (07:10 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Fri, 17 Jul 2015 14:17:58 +0000 (11:17 -0300)
commit25bd0c8bf782eb23c2725c01a069211f82ebdadf
tree5fb4df0cbdcc5d2a6d10201c65da2855b74796e0
parentbd121148d03ffbc2330c5996402bdce44039b445
[media] coda: reuse src_bufs in coda_job_ready

The v4l2_m2m_num_src_bufs_ready() function is called in multiple places
in coda_cob_ready, and there already is a variable src_bufs that is
assigned to its result. Move it to the beginning and use it everywhere.

Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/platform/coda/coda-common.c