media: videobuf2-v4l2: replace if by switch in __fill_vb2_buffer()
authorHans Verkuil <hans.verkuil@cisco.com>
Tue, 14 Aug 2018 09:29:40 +0000 (05:29 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Fri, 31 Aug 2018 15:13:52 +0000 (11:13 -0400)
commit0af4e80bf24a3caf56cd94d6dbe6a8bb72536b1d
treebbeb8c7c49147b97a9d3314d04ee492bf8d1bcc7
parent5f89ec80f1e074d3f25c989264e376a452b03d02
media: videobuf2-v4l2: replace if by switch in __fill_vb2_buffer()

Replace 'if' statements by a switch in __fill_vb2_buffer()
in preparation of the next patch.

No other changes.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Reviewed-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/common/videobuf2/videobuf2-v4l2.c