Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8c9247a6 authored by Tim Deegan's avatar Tim Deegan Committed by Greg Kroah-Hartman
Browse files

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: default avatarTim Deegan <tim@xen.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 7ba01278
Loading
Loading
Loading
Loading
+0 −4
Original line number Original line Diff line number Diff line
@@ -568,10 +568,6 @@ try_again:
		dbgp_printk("Could not find attached debug device\n");
		dbgp_printk("Could not find attached debug device\n");
		goto err;
		goto err;
	}
	}
	if (ret < 0) {
		dbgp_printk("Attached device is not a debug device\n");
		goto err;
	}
	dbgp_endpoint_out = dbgp_desc.bDebugOutEndpoint;
	dbgp_endpoint_out = dbgp_desc.bDebugOutEndpoint;
	dbgp_endpoint_in = dbgp_desc.bDebugInEndpoint;
	dbgp_endpoint_in = dbgp_desc.bDebugInEndpoint;