提交 9fe6fcd8 编写于 作者: A Adrian Bunk 提交者: Greg Kroah-Hartman

[PATCH] USB: drivers/usb/misc/sisusbvga/sisusb.c: remove dead code

The Coverity checker found this dead code.
Signed-off-by: NAdrian Bunk <bunk@stusta.de>
Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
上级 2425e9fe
...@@ -863,9 +863,6 @@ static int sisusb_write_mem_bulk(struct sisusb_usb_data *sisusb, u32 addr, ...@@ -863,9 +863,6 @@ static int sisusb_write_mem_bulk(struct sisusb_usb_data *sisusb, u32 addr,
switch (length) { switch (length) {
case 0:
return ret;
case 1: case 1:
if (userbuffer) { if (userbuffer) {
if (get_user(swap8, (u8 __user *)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, ...@@ -1221,9 +1218,6 @@ static int sisusb_read_mem_bulk(struct sisusb_usb_data *sisusb, u32 addr,
switch (length) { switch (length) {
case 0:
return ret;
case 1: case 1:
ret |= sisusb_read_memio_byte(sisusb, SISUSB_TYPE_MEM, ret |= sisusb_read_memio_byte(sisusb, SISUSB_TYPE_MEM,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册