[PATCH][2/3] pwc-uncompress cleanup - add missing default switch case.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 <[email protected]>
---

 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 [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux