USB: sierra: remove bogus endpoint test
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>
This commit is contained in:
parent
d304889888
commit
21aa1c41db
@ -747,9 +747,6 @@ static struct urb *sierra_setup_urb(struct usb_serial *serial, int endpoint,
|
|||||||
struct urb *urb;
|
struct urb *urb;
|
||||||
u8 *buf;
|
u8 *buf;
|
||||||
|
|
||||||
if (endpoint == -1)
|
|
||||||
return NULL;
|
|
||||||
|
|
||||||
urb = usb_alloc_urb(0, mem_flags);
|
urb = usb_alloc_urb(0, mem_flags);
|
||||||
if (!urb)
|
if (!urb)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user