[2.6 patch] drivers/usb/misc/sisusbvga/sisusb.c: remove dead code

From: Adrian Bunk
Date: Sun Nov 20 2005 - 18:22:13 EST


The Coverity checker found this obviously dead code.


Signed-off-by: Adrian Bunk <bunk@xxxxxxxxx>

---

drivers/usb/misc/sisusbvga/sisusb.c | 6 ------
1 file changed, 6 deletions(-)

--- linux-2.6.15-rc1-mm2-full/drivers/usb/misc/sisusbvga/sisusb.c.old 2005-11-20 22:56:41.000000000 +0100
+++ linux-2.6.15-rc1-mm2-full/drivers/usb/misc/sisusbvga/sisusb.c 2005-11-20 22:58:22.000000000 +0100
@@ -861,13 +861,10 @@

while (length) {

switch (length) {

- case 0:
- return ret;
-
case 1:
if (userbuffer) {
if (get_user(swap8, (u8 __user *)userbuffer))
return -EFAULT;
} else
@@ -1219,13 +1216,10 @@

while (length) {

switch (length) {

- case 0:
- return ret;
-
case 1:

ret |= sisusb_read_memio_byte(sisusb, SISUSB_TYPE_MEM,
addr, &buf[0]);
if (!ret) {

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/