aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTim Deegan <tim@xen.org>2013-09-12 11:08:10 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-09-26 19:25:21 -0400
commit8c9247a6b5e57d04e55d94ecbfd9e9d61c2a01e1 (patch)
treef61200060db61708eddb9e084fc2c5926c89f643
parent7ba0127805abf27f0549f327699283e1dbed12f3 (diff)
USB: ehci-dbgp: drop dead code.
We can only reach this spot by breaking out of the scan loop, so by construction ret > 0. Found by Coverity, in a copy of this file in the Xen sources. Signed-off-by: Tim Deegan <tim@xen.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/usb/early/ehci-dbgp.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/usb/early/ehci-dbgp.c b/drivers/usb/early/ehci-dbgp.c
index 5e29ddeb4d33..8cfc3191be50 100644
--- a/drivers/usb/early/ehci-dbgp.c
+++ b/drivers/usb/early/ehci-dbgp.c
@@ -568,10 +568,6 @@ try_again:
568 dbgp_printk("Could not find attached debug device\n"); 568 dbgp_printk("Could not find attached debug device\n");
569 goto err; 569 goto err;
570 } 570 }
571 if (ret < 0) {
572 dbgp_printk("Attached device is not a debug device\n");
573 goto err;
574 }
575 dbgp_endpoint_out = dbgp_desc.bDebugOutEndpoint; 571 dbgp_endpoint_out = dbgp_desc.bDebugOutEndpoint;
576 dbgp_endpoint_in = dbgp_desc.bDebugInEndpoint; 572 dbgp_endpoint_in = dbgp_desc.bDebugInEndpoint;
577 573