usb: remove dead assignments, spotted by clang analyzer

Value stored is never read.

Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
This commit is contained in:
Blue Swirl 2010-04-25 18:23:04 +00:00
parent 7300c07991
commit d4c4e6fdc7
7 changed files with 24 additions and 14 deletions

View file

@ -152,11 +152,10 @@ static void do_attach(USBDevice *dev)
int usb_device_attach(USBDevice *dev)
{
USBBus *bus = usb_bus_from_device(dev);
USBDevice *hub;
if (bus->nfree == 1) {
/* Create a new hub and chain it on. */
hub = usb_create_simple(bus, "usb-hub");
usb_create_simple(bus, "usb-hub");
}
do_attach(dev);
return 0;