media: vicodec: remove WARN_ON(1) from get_q_data()
authorHans Verkuil <hverkuil@xs4all.nl>
Wed, 13 Mar 2019 14:46:42 +0000 (10:46 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Wed, 20 Mar 2019 09:58:35 +0000 (05:58 -0400)
commitf221b84ee13c5a6af837f497a2a89732472ad27c
tree75e67d556400a19a0bfefa3defb4e6d7ec911dd1
parent6fe59b7eec391ad2e340f7727781cede099ab4c9
media: vicodec: remove WARN_ON(1) from get_q_data()

Some functions like enum_fmt use the buffer type as was passed
from userspace, which might cause the switch to fall into the
default case. Just drop the WARN_ON(1) to avoid kernel log pollution.

Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/platform/vicodec/vicodec-core.c