]> asedeno.scripts.mit.edu Git - linux.git/commit
media: mtk-vcodec: vdec: clean up vidioc_vdec_s_fmt a bit
authorAlexandre Courbot <acourbot@chromium.org>
Fri, 6 Sep 2019 11:55:03 +0000 (08:55 -0300)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Tue, 1 Oct 2019 19:46:42 +0000 (16:46 -0300)
commit1c7b5eedb9884dc012a9146d523f7c5194e757d5
tree27c45672b4cfcaced3226f29274202c355a64f43
parent2abb4db289d757cddf2bf8aae34be65bad653bb7
media: mtk-vcodec: vdec: clean up vidioc_vdec_s_fmt a bit

Check for a potentially NULL pointer that was overlooked and use shorter
accessors to the same data. While we are at it, sprinkle a few comments.

Signed-off-by: Alexandre Courbot <acourbot@chromium.org>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c