]> git.baikalelectronics.ru Git - kernel.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)
commit1299f412c7fca61f144a223597c6a6c01fe7b78d
tree27c45672b4cfcaced3226f29274202c355a64f43
parent17bad4bc3e37a1c41cdca7a250e1cf005080ceca
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