projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2425e9f
)
[PATCH] USB: drivers/usb/misc/sisusbvga/sisusb.c: remove dead code
author
Adrian Bunk
<bunk@stusta.de>
Tue, 29 Nov 2005 13:01:55 +0000
(14:01 +0100)
committer
Greg Kroah-Hartman
<gregkh@suse.de>
Wed, 4 Jan 2006 21:51:40 +0000
(13:51 -0800)
The Coverity checker found this dead code.
Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/misc/sisusbvga/sisusb.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/usb/misc/sisusbvga/sisusb.c
b/drivers/usb/misc/sisusbvga/sisusb.c
index 44350d49ad0a9d969ef21e499c8103d023689893..1ced113ccb50d8bb74f5e323d168bfd9bba4ef97 100644
(file)
--- 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,