diff options
author | Jean-François Moine <moinejf@free.fr> | 2010-07-14 05:21:16 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2010-08-02 15:43:02 -0400 |
commit | a2ba6f27cd2c66ad1119e0354a828a1be715c2f1 (patch) | |
tree | 1a0aa43a3a3d2ed03a3e2a522c81ac43c5be24e5 /drivers/media/video/gspca | |
parent | b5f5933a6ab63725aedfb92f015007d4ccd33a55 (diff) |
V4L/DVB: gspca - main: Fix a compilation warning
Reported-by: Justin P. Mattock <justinmattock@gmail.com>
Signed-off-by: Jean-François Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/gspca')
-rw-r--r-- | drivers/media/video/gspca/gspca.c | 3 |
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: |