mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-01-20 17:28:39 +07:00
media: atomisp: don't flood dmesg with -EAGAIN return codes
Using DQBUF on non-blocking mode will return -EAGAIN if nothing arrives. Printing it has no value, even for debug purposes. So, only display real return codes. Acked-by: Sakari Ailus <sakari.ailus@linux.intel.com> Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
This commit is contained in:
parent
171b7bd66a
commit
9c30f50d14
@ -1443,7 +1443,8 @@ static int atomisp_dqbuf(struct file *file, void *fh, struct v4l2_buffer *buf)
|
||||
|
||||
ret = videobuf_dqbuf(&pipe->capq, buf, file->f_flags & O_NONBLOCK);
|
||||
if (ret) {
|
||||
dev_dbg(isp->dev, "<%s: %d\n", __func__, ret);
|
||||
if (ret != -EAGAIN)
|
||||
dev_dbg(isp->dev, "<%s: %d\n", __func__, ret);
|
||||
return ret;
|
||||
}
|
||||
rt_mutex_lock(&isp->mutex);
|
||||
|
Loading…
Reference in New Issue
Block a user