v4l2-core: Remove unhelpful warnings
This warning is causing unnecessary triage for any test reports. Change-Id: Iec47d217264e1b98b1fbe62c0ba9ef47aa41af9c Signed-off-by: Shiju Mathew <shijum@codeaurora.org>
This commit is contained in:
parent
ef00227cce
commit
fba9268511
1 changed files with 0 additions and 23 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue