]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
media: v4l2-mem2mem: Simplify exiting the function in __v4l2_m2m_try_schedule
authorSakari Ailus <sakari.ailus@linux.intel.com>
Thu, 18 Oct 2018 18:02:22 +0000 (14:02 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Fri, 23 Nov 2018 11:36:35 +0000 (06:36 -0500)
commitcbec2836f8be61ca573d48efe8803929100d4cba
tree9eee0b9043edad47e00d2ac86a7dae4c2206c0da
parent542a522d32efb613cfc929bdbf2c4160359167f9
media: v4l2-mem2mem: Simplify exiting the function in __v4l2_m2m_try_schedule

The __v4l2_m2m_try_schedule function acquires and releases multiple
spinlocks. Simplify unlocking the job lock by adding labels to unlock
the lock and exit the function.

Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Ezequiel Garcia <ezequiel@collabora.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/v4l2-core/v4l2-mem2mem.c