summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinux Build Service Account <lnxbuild@localhost>2018-04-18 04:50:52 -0700
committerGerrit - the friendly Code Review server <code-review@localhost>2018-04-18 04:50:52 -0700
commit4285c64373c4a319a5d89fd5ec3647c11b33b05a (patch)
tree390e99509409c91c64ec6632f815d817d7dc7d1a
parentdb005c458c701ded1856bc6facd07349f62e98a2 (diff)
parentfba9268511523e7480c64b4fff8ff8a2866a100d (diff)
Merge "v4l2-core: Remove unhelpful warnings"
-rw-r--r--drivers/media/v4l2-core/videobuf2-v4l2.c23
1 files changed, 0 insertions, 23 deletions
diff --git a/drivers/media/v4l2-core/videobuf2-v4l2.c b/drivers/media/v4l2-core/videobuf2-v4l2.c
index bf23234d957e..b44d0e755675 100644
--- a/drivers/media/v4l2-core/videobuf2-v4l2.c
+++ b/drivers/media/v4l2-core/videobuf2-v4l2.c
@@ -133,23 +133,6 @@ static int __set_timestamp(struct vb2_buffer *vb, const void *pb)
return 0;
};
-static void vb2_warn_zero_bytesused(struct vb2_buffer *vb)
-{
- static bool check_once;
-
- if (check_once)
- return;
-
- check_once = true;
- WARN_ON(1);
-
- pr_warn("use of bytesused == 0 is deprecated and will be removed in the future,\n");
- if (vb->vb2_queue->allow_zero_bytesused)
- pr_warn("use VIDIOC_DECODER_CMD(V4L2_DEC_CMD_STOP) instead.\n");
- else
- pr_warn("use the actual size instead.\n");
-}
-
static int vb2_queue_or_prepare_buf(struct vb2_queue *q, struct v4l2_buffer *b,
const char *opname)
{
@@ -357,9 +340,6 @@ static int __fill_vb2_buffer(struct vb2_buffer *vb,
struct vb2_plane *pdst = &planes[plane];
struct v4l2_plane *psrc = &b->m.planes[plane];
- if (psrc->bytesused == 0)
- vb2_warn_zero_bytesused(vb);
-
if (vb->vb2_queue->allow_zero_bytesused)
pdst->bytesused = psrc->bytesused;
else
@@ -394,9 +374,6 @@ static int __fill_vb2_buffer(struct vb2_buffer *vb,
}
if (V4L2_TYPE_IS_OUTPUT(b->type)) {
- if (b->bytesused == 0)
- vb2_warn_zero_bytesused(vb);
-
if (vb->vb2_queue->allow_zero_bytesused)
planes[0].bytesused = b->bytesused;
else