Skip to content

Commit

Permalink
[PATCH] pwc-uncompress warning fix
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Andrew Morton authored and Linus Torvalds committed Jun 23, 2005
1 parent 9235e68 commit 790a19c
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions drivers/usb/media/pwc/pwc-uncompress.c
Original file line number Diff line number Diff line change
Expand Up @@ -118,28 +118,27 @@ 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:
case 720:
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;
}
Expand Down

0 comments on commit 790a19c

Please sign in to comment.