Skip to content

Commit

Permalink
[PATCH] USB: drivers/usb/misc/sisusbvga/sisusb.c: remove dead code
Browse files Browse the repository at this point in the history
The Coverity checker found this dead code.

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Adrian Bunk authored and Greg Kroah-Hartman committed Jan 4, 2006
1 parent 2425e9f commit 9fe6fcd
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions drivers/usb/misc/sisusbvga/sisusb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 9fe6fcd

Please sign in to comment.