Explorar o código

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>
Johan Hovold %!s(int64=11) %!d(string=hai) anos
pai
achega
21aa1c41db
Modificáronse 1 ficheiros con 0 adicións e 3 borrados
  1. 0 3
      drivers/usb/serial/sierra.c

+ 0 - 3
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;