summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorJohan Hovold <jhovold@gmail.com>2014-05-26 19:22:59 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-05-27 15:04:04 -0700
commit21aa1c41dbe820ec7d2271f3e675eb1be2320245 (patch)
tree961f4df9785193fcfafa7dc182c6c706e0cdd9d7 /drivers
parentd304889888af2ef65c94dfb52441cfecb05853e8 (diff)
downloadtalos-obmc-linux-21aa1c41dbe820ec7d2271f3e675eb1be2320245.tar.gz
talos-obmc-linux-21aa1c41dbe820ec7d2271f3e675eb1be2320245.zip
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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/usb/serial/sierra.c3
1 files changed, 0 insertions, 3 deletions
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;
OpenPOWER on IntegriCloud