V4L/DVB: gspca - main: Fix a compilation warning

Reported-by: Justin P. Mattock <[email protected]>
Signed-off-by: Jean-François Moine <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
This commit is contained in:
Jean-François Moine 2010-07-14 06:21:16 -03:00 • committed by Mauro Carvalho Chehab
commit a2ba6f27cd

View file

@ -1467,7 +1467,8 @@ static int vidioc_reqbufs(struct file *file, void *priv,
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: