]> git.baikalelectronics.ru Git - kernel.git/commit
media: hantro: streamline open, reuse error path
authorPhilipp Zabel <p.zabel@pengutronix.de>
Thu, 5 Sep 2019 10:25:54 +0000 (07:25 -0300)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Tue, 1 Oct 2019 19:42:37 +0000 (16:42 -0300)
commita976d9a19bf1e5b89def2c07e828ed6965bc1afb
tree8ae4c3534dd8f072454bc519149f6a3006d90f24
parent0964b544f57f5d06f84c8d381d5c975f9feecb2a
media: hantro: streamline open, reuse error path

This adds a label to the error path to avoid calling
v4l2_m2m_ctx_init() and kfree(ctx) in two places each.

Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/staging/media/hantro/hantro_drv.c