mirror of https://gitee.com/openkylin/linux.git
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;
|
||||
u8 *buf;
|
||||
|
||||
if (endpoint == -1)
|
||||
return NULL;
|
||||
|
||||
urb = usb_alloc_urb(0, mem_flags);
|
||||
if (!urb)
|
||||
return NULL;
|
||||
|
|
Loading…
Reference in New Issue