Message ID | 20100708084010.6a15f8c3@tele (mailing list archive) |
---|---|
State | Accepted |
Headers | show |
--- gspca.c~ 2010-07-08 08:15:14.000000000 +0200 +++ gspca.c 2010-07-08 08:28:52.000000000 +0200 @@ -1467,7 +1467,8 @@ static int vidioc_reqbufs(struct file *f struct gspca_dev *gspca_dev = priv; int i, ret = 0, streaming; - switch (rb->memory) { + i = rb->memory; /* (avoid compilation warning) */ + switch (i) { case GSPCA_MEMORY_READ: /* (internal call) */ case V4L2_MEMORY_MMAP: case V4L2_MEMORY_USERPTR: