mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 01:03:55 -06:00
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:
parent
7300c07991
commit
d4c4e6fdc7
7 changed files with 24 additions and 14 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue