diff options
author | Adrian Bunk <bunk@stusta.de> | 2005-11-29 14:01:55 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2006-01-04 13:51:40 -0800 |
commit | 9fe6fcd8ccb2c8c661dfd1e07e3122aef31a67d4 (patch) | |
tree | 23a952fa918799fa7847fbd78d2fbf2d9691206b /drivers | |
parent | 2425e9fe67cb5e66c173c4f604ddd8a5970d89e9 (diff) | |
download | linux-9fe6fcd8ccb2c8c661dfd1e07e3122aef31a67d4.tar.gz linux-9fe6fcd8ccb2c8c661dfd1e07e3122aef31a67d4.tar.bz2 linux-9fe6fcd8ccb2c8c661dfd1e07e3122aef31a67d4.zip |
[PATCH] USB: drivers/usb/misc/sisusbvga/sisusb.c: remove dead code
The Coverity checker found this dead code.
Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/usb/misc/sisusbvga/sisusb.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/usb/misc/sisusbvga/sisusb.c b/drivers/usb/misc/sisusbvga/sisusb.c index 44350d49ad0a..1ced113ccb50 100644 --- a/drivers/usb/misc/sisusbvga/sisusb.c +++ b/drivers/usb/misc/sisusbvga/sisusb.c @@ -863,9 +863,6 @@ static int sisusb_write_mem_bulk(struct sisusb_usb_data *sisusb, u32 addr, switch (length) { - case 0: - return ret; - case 1: if (userbuffer) { if (get_user(swap8, (u8 __user *)userbuffer)) @@ -1221,9 +1218,6 @@ static int sisusb_read_mem_bulk(struct sisusb_usb_data *sisusb, u32 addr, switch (length) { - case 0: - return ret; - case 1: ret |= sisusb_read_memio_byte(sisusb, SISUSB_TYPE_MEM, |