diff options
author | Hans Verkuil <hverkuil@xs4all.nl> | 2019-03-13 15:46:42 +0100 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab+samsung@kernel.org> | 2019-03-20 10:58:35 +0100 |
commit | f221b84ee13c5a6af837f497a2a89732472ad27c (patch) | |
tree | 75e67d556400a19a0bfefa3defb4e6d7ec911dd1 | |
parent | media: em28xx-input: make const array addr_list static (diff) | |
download | linux-f221b84ee13c5a6af837f497a2a89732472ad27c.tar.xz linux-f221b84ee13c5a6af837f497a2a89732472ad27c.zip |
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>
-rw-r--r-- | drivers/media/platform/vicodec/vicodec-core.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/media/platform/vicodec/vicodec-core.c b/drivers/media/platform/vicodec/vicodec-core.c index d7636fe9e174..075927dba614 100644 --- a/drivers/media/platform/vicodec/vicodec-core.c +++ b/drivers/media/platform/vicodec/vicodec-core.c @@ -148,7 +148,6 @@ static struct vicodec_q_data *get_q_data(struct vicodec_ctx *ctx, case V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE: return &ctx->q_data[V4L2_M2M_DST]; default: - WARN_ON(1); break; } return NULL; |