diff mbox

video:gspca.c Fix warning: case value '7' not in enumerated type 'enum v4l2_memory'

Message ID 20100708084010.6a15f8c3@tele (mailing list archive)
State Accepted
Headers show

Commit Message

Jean-Francois Moine July 8, 2010, 6:40 a.m. UTC
None
diff mbox

Patch

--- 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: