From: Gustavo A. R. Silva Date: Wed, 8 Feb 2017 06:18:50 +0000 (-0600) Subject: drivers: usb: early: remove unused code X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=3d95521c12d84d917d2f7ec3e002d4b0e0ef3c28;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git drivers: usb: early: remove unused code Remove this line of code because devnum is overwritten before it can be used. This could happen if line of code 609 (goto try_again;) is executed. Otherwise, devnum is never used again. Addresses-Coverity-ID: 1226870 Signed-off-by: Gustavo A. R. Silva Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/usb/early/ehci-dbgp.c b/drivers/usb/early/ehci-dbgp.c index ea73afb026d8..e2654443e8eb 100644 --- a/drivers/usb/early/ehci-dbgp.c +++ b/drivers/usb/early/ehci-dbgp.c @@ -580,7 +580,6 @@ try_again: USB_DEBUG_DEVNUM); goto err; } - devnum = USB_DEBUG_DEVNUM; dbgp_printk("debug device renamed to 127\n"); }