diff options
author | Mauro Carvalho Chehab <mchehab@redhat.com> | 2012-10-27 14:58:45 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2012-10-28 07:38:38 -0200 |
commit | 902e4575c3f7f5e989e4520a549b309dfb40a77c (patch) | |
tree | 574428c48bc1606ba04838a6389ca58a76a1091a /drivers/staging/media | |
parent | 067d85134a81e2c2a5566d93760e5f398e83a15e (diff) | |
download | op-kernel-dev-902e4575c3f7f5e989e4520a549b309dfb40a77c.zip op-kernel-dev-902e4575c3f7f5e989e4520a549b309dfb40a77c.tar.gz |
[media] go7007-v4l2: warning fix: index is unsigned, so it will never be below 0
drivers/staging/media/go7007/go7007-v4l2.c: In function 'vidioc_qbuf':
drivers/staging/media/go7007/go7007-v4l2.c:815:2: warning: comparison of unsigned expression < 0 is always false [-Wtype-limits]
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/staging/media')
-rw-r--r-- | drivers/staging/media/go7007/go7007-v4l2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/media/go7007/go7007-v4l2.c b/drivers/staging/media/go7007/go7007-v4l2.c index 980371b..a78133b 100644 --- a/drivers/staging/media/go7007/go7007-v4l2.c +++ b/drivers/staging/media/go7007/go7007-v4l2.c @@ -812,7 +812,7 @@ static int vidioc_qbuf(struct file *file, void *priv, struct v4l2_buffer *buf) return retval; mutex_lock(&gofh->lock); - if (buf->index < 0 || buf->index >= gofh->buf_count) + if (buf->index >= gofh->buf_count) goto unlock_and_return; gobuf = &gofh->bufs[buf->index]; |