]> err.no Git - linux-2.6/commitdiff
[PATCH] pwc-uncompress warning fix
authorAndrew Morton <akpm@osdl.org>
Thu, 23 Jun 2005 07:10:31 +0000 (00:10 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Thu, 23 Jun 2005 16:45:35 +0000 (09:45 -0700)
drivers/usb/media/pwc/pwc-uncompress.c: In function `pwc_decompress':
drivers/usb/media/pwc/pwc-uncompress.c:140: warning: unreachable code at beginning of switch statement

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/usb/media/pwc/pwc-uncompress.c

index bc3b1635eab0083fb6bff88ce22d0dba44b1f9cb..ef4204eab6c4459aaa1ccbadd2f1876e73e09262 100644 (file)
@@ -118,9 +118,9 @@ int pwc_decompress(struct pwc_device *pdev)
                   return -ENXIO; /* No such device or address: missing decompressor */
                 }
 
+#if 0
                switch (pdev->type)
                 {
-#if 0           
                  case 675:
                  case 680:
                  case 690:
@@ -128,18 +128,17 @@ int pwc_decompress(struct pwc_device *pdev)
                  case 730:
                  case 740:
                  case 750:
-                   pwc_dec23_decompress(&pdev->image, &pdev->view, &pdev->offset,
-                               yuv, image,
-                               flags,
+                   pwc_dec23_decompress(&pdev->image, &pdev->view,
+                               &pdev->offset, yuv, image, flags,
                                pdev->decompress_data, pdev->vbandlength);
                    break;
                  case 645:
                  case 646:
                    /* TODO & FIXME */
-#endif             
-                   return -ENXIO; /* No such device or address: missing decompressor */
+                   return -ENXIO; /* Missing decompressor */
                    break;
                 }
+#endif
        }
        return 0;
 }