diff options
author | Hans de Goede <hdegoede@redhat.com> | 2015-05-05 23:56:06 +0200 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2015-05-06 12:48:34 -0600 |
commit | 69710ce3ee73445f1c445c41a853fd1d08acd5d1 (patch) | |
tree | 871ee6f14ad1f2ef9b51f38293eac7b2204dfc22 /drivers | |
parent | 2b338ef41127351089254b748de5cefd95c3e800 (diff) | |
download | u-boot-imx-69710ce3ee73445f1c445c41a853fd1d08acd5d1.zip u-boot-imx-69710ce3ee73445f1c445c41a853fd1d08acd5d1.tar.gz u-boot-imx-69710ce3ee73445f1c445c41a853fd1d08acd5d1.tar.bz2 |
usb: ohci: Remove unused devgone global variable
devgone is never assigned a value, so the one comparisson reading it will
never be true, and devgone can be completely removed.
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Acked-by: Marek Vasut <marex@denx.de>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/usb/host/ohci-hcd.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/drivers/usb/host/ohci-hcd.c b/drivers/usb/host/ohci-hcd.c index 97a7ede..81ef8ef 100644 --- a/drivers/usb/host/ohci-hcd.c +++ b/drivers/usb/host/ohci-hcd.c @@ -111,8 +111,6 @@ struct ohci_hcca ghcca[1]; struct ohci_hcca *phcca; /* this allocates EDs for all possible endpoints */ struct ohci_device ohci_dev; -/* device which was disconnected */ -struct usb_device *devgone; static inline u32 roothub_a(struct ohci *hc) { return ohci_readl(&hc->regs->roothub.a); } @@ -1380,12 +1378,6 @@ int submit_common_msg(struct usb_device *dev, unsigned long pipe, void *buffer, urb->transfer_buffer_length = transfer_len; urb->interval = interval; - /* device pulled? Shortcut the action. */ - if (devgone == dev) { - dev->status = USB_ST_CRC_ERR; - return 0; - } - #ifdef DEBUG urb->actual_length = 0; pkt_print(urb, dev, pipe, buffer, transfer_len, |