Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 343837
b: refs/heads/master
c: 3a70c3f
h: refs/heads/master
i:
  343835: dc37121
v: v3
  • Loading branch information
Mauro Carvalho Chehab committed Oct 28, 2012
1 parent 55b75f0 commit 1acae63
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 9825f376533c8550dc2f8d78a5a9af6612490a1a
refs/heads/master: 3a70c3fbcd546bad2314492700dd8d5c36023eb1
3 changes: 1 addition & 2 deletions trunk/drivers/media/usb/gspca/gspca.c
Original file line number Diff line number Diff line change
Expand Up @@ -1586,8 +1586,7 @@ static int vidioc_querybuf(struct file *file, void *priv,
struct gspca_dev *gspca_dev = video_drvdata(file);
struct gspca_frame *frame;

if (v4l2_buf->index < 0
|| v4l2_buf->index >= gspca_dev->nframes)
if (v4l2_buf->index >= gspca_dev->nframes)
return -EINVAL;

frame = &gspca_dev->frame[v4l2_buf->index];
Expand Down

0 comments on commit 1acae63

Please sign in to comment.