diff options
author | Hans Verkuil <hverkuil-cisco@xs4all.nl> | 2018-11-19 10:33:44 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-03-23 08:44:32 +0100 |
commit | 7b5115689bf9dafc5127b28ace4589f698d4adfa (patch) | |
tree | f17702e9522d1734f5b6f39421b5268f11351cb7 /fs/exofs/file.c | |
parent | b83f73aa760899a492752f8447ec4ef230e5c01d (diff) |
media: videobuf2-v4l2: drop WARN_ON in vb2_warn_zero_bytesused()
commit 5e99456c20f712dcc13d9f6ca4278937d5367355 upstream.
Userspace shouldn't set bytesused to 0 for output buffers.
vb2_warn_zero_bytesused() warns about this (only once!), but it also
calls WARN_ON(1), which is confusing since it is not immediately clear
that it warns about a 0 value for bytesused.
Just drop the WARN_ON as it serves no purpose.
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Acked-by: Ezequiel Garcia <ezequiel@collabora.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Cc: Matthias Maennich <maennich@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'fs/exofs/file.c')
0 files changed, 0 insertions, 0 deletions