Skip to content

Commit f221b84

Browse files
hverkuilmchehab
authored andcommitted
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>
1 parent 6fe59b7 commit f221b84

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

drivers/media/platform/vicodec/vicodec-core.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,6 @@ static struct vicodec_q_data *get_q_data(struct vicodec_ctx *ctx,
148148
case V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE:
149149
return &ctx->q_data[V4L2_M2M_DST];
150150
default:
151-
WARN_ON(1);
152151
break;
153152
}
154153
return NULL;

0 commit comments

Comments
 (0)