[2.6 patch] drivers/usb/misc/ftdi-elan.c: remove dead code

From: Adrian Bunk
Date: Sun Oct 08 2006 - 19:17:01 EST


The Coverity checker spotted this obviously dead code.

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

--- linux-2.6/drivers/usb/misc/ftdi-elan.c.old 2006-10-09 00:22:57.000000000 +0200
+++ linux-2.6/drivers/usb/misc/ftdi-elan.c 2006-10-09 00:24:39.000000000 +0200
@@ -513,8 +513,6 @@
ftdi->disconnected += 1;
} else if (retval == -ENODEV) {
ftdi->disconnected += 1;
- } else if (retval == -ENODEV) {
- ftdi->disconnected += 1;
} else if (retval == -EILSEQ) {
ftdi->disconnected += 1;
} else {

-
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/