diff options
author | Gustavo A. R. Silva <garsilva@embeddedor.com> | 2017-02-08 09:18:50 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-02-08 09:43:47 +0300 |
commit | 3d95521c12d84d917d2f7ec3e002d4b0e0ef3c28 (patch) | |
tree | 1b589f39b1ddcde909065e80728928a0d98170e5 /drivers/usb/early | |
parent | 7bddba775026d51dede9d726bd8158574c0ec5a6 (diff) | |
download | linux-3d95521c12d84d917d2f7ec3e002d4b0e0ef3c28.tar.xz |
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 <garsilva@embeddedor.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/early')
-rw-r--r-- | drivers/usb/early/ehci-dbgp.c | 1 |
1 files changed, 0 insertions, 1 deletions
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"); } |