ehci-dbgp: drop dead code.
authorTim Deegan <tim@xen.org>
Thu, 12 Sep 2013 11:58:11 +0000 (12:58 +0100)
committerTim Deegan <tim@xen.org>
Thu, 12 Sep 2013 16:48:01 +0000 (17:48 +0100)
We can only reach this spot by breaking out of the scan loop,
so by construction ret > 0.

Coverity CID 1055259

Signed-off-by: Tim Deegan <tim@xen.org>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
xen/drivers/char/ehci-dbgp.c

index 25049796e2703e8ecd4a76b3b096018f6f7718d0..301eedf22ee2a91d163df6ab08f5066c3141cdc5 100644 (file)
@@ -946,11 +946,6 @@ try_again:
         dbgp_printk("could not find attached debug device\n");
         goto err;
     }
-    if ( ret < 0 )
-    {
-        dbgp_printk("attached device is not a debug device\n");
-        goto err;
-    }
     dbgp->out.endpoint = dbgp_desc.bDebugOutEndpoint;
     dbgp->in.endpoint = dbgp_desc.bDebugInEndpoint;