drivers: usb: early: remove unused code
authorGustavo A. R. Silva <garsilva@embeddedor.com>
Wed, 8 Feb 2017 06:18:50 +0000 (00:18 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 8 Feb 2017 06:43:47 +0000 (07:43 +0100)
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>
drivers/usb/early/ehci-dbgp.c

index ea73afb..e265444 100644 (file)
@@ -580,7 +580,6 @@ try_again:
                                USB_DEBUG_DEVNUM);
                        goto err;
                }
-               devnum = USB_DEBUG_DEVNUM;
                dbgp_printk("debug device renamed to 127\n");
        }