aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/media/video/gspca/gspca.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/media/video/gspca/gspca.c b/drivers/media/video/gspca/gspca.c
index 11b0e3557c1b..af7e042fd19f 100644
--- a/drivers/media/video/gspca/gspca.c
+++ b/drivers/media/video/gspca/gspca.c
@@ -1467,7 +1467,8 @@ static int vidioc_reqbufs(struct file *file, void *priv,
1467 struct gspca_dev *gspca_dev = priv; 1467 struct gspca_dev *gspca_dev = priv;
1468 int i, ret = 0, streaming; 1468 int i, ret = 0, streaming;
1469 1469
1470 switch (rb->memory) { 1470 i = rb->memory; /* (avoid compilation warning) */
1471 switch (i) {
1471 case GSPCA_MEMORY_READ: /* (internal call) */ 1472 case GSPCA_MEMORY_READ: /* (internal call) */
1472 case V4L2_MEMORY_MMAP: 1473 case V4L2_MEMORY_MMAP:
1473 case V4L2_MEMORY_USERPTR: 1474 case V4L2_MEMORY_USERPTR: