Messages in this thread Patch in this message | | | Date | Mon, 20 Jun 2005 23:15:03 +0200 (CEST) | From | Jesper Juhl <> | Subject | [PATCH][2/3] pwc-uncompress cleanup - add missing default switch case. |
| |
This patch adds a missing default: case to the switch statement in drivers/usb/media/pwc/pwc-uncompress.c::pwc_decompress() This change fixes the following compiler warning: 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 and has the added bennefit of making the switch statement function the way it's supposed to.
This patch is incremental on top of the previous [PATCH][1/3]
Signed-off-by: Jesper Juhl <juhl-lkml@dif.dk> ---
drivers/usb/media/pwc/pwc-uncompress.c | 1 + 1 files changed, 1 insertion(+)
--- linux-2.6.12/drivers/usb/media/pwc/pwc-uncompress.c.with_patch_1 2005-06-20 22:54:15.000000000 +0200 +++ linux-2.6.12/drivers/usb/media/pwc/pwc-uncompress.c 2005-06-20 22:54:42.000000000 +0200 @@ -137,6 +137,7 @@ int pwc_decompress(struct pwc_device *pd case 646: /* TODO & FIXME */ #endif + default: /* No such device or address: missing decompressor */ return -ENXIO; break;
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |