projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b5f5933
)
V4L/DVB: gspca - main: Fix a compilation warning
author
Jean-François Moine
<moinejf@free.fr>
Wed, 14 Jul 2010 09:21:16 +0000
(06:21 -0300)
committer
Mauro Carvalho Chehab
<mchehab@redhat.com>
Mon, 2 Aug 2010 19:43:02 +0000
(16:43 -0300)
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>
drivers/media/video/gspca/gspca.c
patch
|
blob
|
history
diff --git
a/drivers/media/video/gspca/gspca.c
b/drivers/media/video/gspca/gspca.c
index 11b0e3557c1b52eb0323863ee4ace48496ccb81a..af7e042fd19ff144485fee659b9873d8fc625131 100644
(file)
--- 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,
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: