projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d304889
)
USB: sierra: remove bogus endpoint test
author
Johan Hovold
<jhovold@gmail.com>
Mon, 26 May 2014 17:22:59 +0000
(19:22 +0200)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Tue, 27 May 2014 22:04:04 +0000
(15:04 -0700)
Remove bogus endpoint-address test which is never true.
Signed-off-by: Johan Hovold <jhovold@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/serial/sierra.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/usb/serial/sierra.c
b/drivers/usb/serial/sierra.c
index 4cb11b710b48ccaa5d77e6971e4d380e007c9f75..169899f5f2e6422fa0de38ca24f54069a4d0a13a 100644
(file)
--- a/
drivers/usb/serial/sierra.c
+++ b/
drivers/usb/serial/sierra.c
@@
-747,9
+747,6
@@
static struct urb *sierra_setup_urb(struct usb_serial *serial, int endpoint,
struct urb *urb;
u8 *buf;
- if (endpoint == -1)
- return NULL;
-
urb = usb_alloc_urb(0, mem_flags);
if (!urb)
return NULL;