]> asedeno.scripts.mit.edu Git - linux.git/commit
media: ti-vpe: vpe: Remove unnecessary use of container_of
authorBenoit Parrot <bparrot@ti.com>
Mon, 7 Oct 2019 15:09:52 +0000 (12:09 -0300)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Thu, 10 Oct 2019 16:43:12 +0000 (13:43 -0300)
commit55c686ff93f1287c4f7278c78926c11611cf7e00
treee4c7c24e65edbfac5de0b11c0f9d04fe19088daa
parent4d59c7d455853edca990848b1cb7c482b4628f32
media: ti-vpe: vpe: Remove unnecessary use of container_of

Instead of saving a pointer to the 'fh' member of struct vpe_ctx to
later have to use container_of to retrieve the actual pointer to the
context structure, which seems to confuse static code analysis tool
anyways, just save the pointer to the actual structure and then retrieve
it directly.

Signed-off-by: Benoit Parrot <bparrot@ti.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/platform/ti-vpe/vpe.c