lkml.org 
[lkml]   [2005]   [Jun]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
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/

\
 
 \ /
  Last update: 2005-06-20 23:21    [W:0.034 / U:28.544 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site