mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-08 14:02:37 -04: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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user