Commit 790a19cd authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] pwc-uncompress warning fix

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: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 9235e68b
...@@ -118,9 +118,9 @@ int pwc_decompress(struct pwc_device *pdev) ...@@ -118,9 +118,9 @@ int pwc_decompress(struct pwc_device *pdev)
return -ENXIO; /* No such device or address: missing decompressor */ return -ENXIO; /* No such device or address: missing decompressor */
} }
#if 0
switch (pdev->type) switch (pdev->type)
{ {
#if 0
case 675: case 675:
case 680: case 680:
case 690: case 690:
...@@ -128,18 +128,17 @@ int pwc_decompress(struct pwc_device *pdev) ...@@ -128,18 +128,17 @@ int pwc_decompress(struct pwc_device *pdev)
case 730: case 730:
case 740: case 740:
case 750: case 750:
pwc_dec23_decompress(&pdev->image, &pdev->view, &pdev->offset, pwc_dec23_decompress(&pdev->image, &pdev->view,
yuv, image, &pdev->offset, yuv, image, flags,
flags,
pdev->decompress_data, pdev->vbandlength); pdev->decompress_data, pdev->vbandlength);
break; break;
case 645: case 645:
case 646: case 646:
/* TODO & FIXME */ /* TODO & FIXME */
#endif return -ENXIO; /* Missing decompressor */
return -ENXIO; /* No such device or address: missing decompressor */
break; break;
} }
#endif
} }
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment