From: Johan Hovold Date: Mon, 26 May 2014 17:22:59 +0000 (+0200) Subject: USB: sierra: remove bogus endpoint test X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=21aa1c41dbe820ec7d2271f3e675eb1be2320245;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git USB: sierra: remove bogus endpoint test Remove bogus endpoint-address test which is never true. Signed-off-by: Johan Hovold Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/usb/serial/sierra.c b/drivers/usb/serial/sierra.c index 4cb11b710b48..169899f5f2e6 100644 --- 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;