From bc230d5dcabf31c6db82916df7d0b98ca11fbaad Mon Sep 17 00:00:00 2001 From: Tim Deegan Date: Thu, 12 Sep 2013 12:58:11 +0100 Subject: ehci-dbgp: drop dead code. 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 Reviewed-by: Andrew Cooper Acked-by: Jan Beulich --- xen/drivers/char/ehci-dbgp.c | 5 ----- 1 file changed, 5 deletions(-) (limited to 'xen/drivers') diff --git a/xen/drivers/char/ehci-dbgp.c b/xen/drivers/char/ehci-dbgp.c index 25049796e2..301eedf22e 100644 --- a/xen/drivers/char/ehci-dbgp.c +++ b/xen/drivers/char/ehci-dbgp.c @@ -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; -- cgit v1.2.3