diff options
author | Blue Swirl <blauwirbel@gmail.com> | 2010-04-25 18:23:04 +0000 |
---|---|---|
committer | Blue Swirl <blauwirbel@gmail.com> | 2010-04-25 18:23:04 +0000 |
commit | d4c4e6fdc7f5077fba3446f6e650eb94d07a0be5 (patch) | |
tree | 30a0e68d4a839c12488f2e234a9cb8cb4e2aaa62 /hw/usb-hub.c | |
parent | 7300c07991e05e66e04528aa1c72e31c127a79cd (diff) | |
download | qemu-d4c4e6fdc7f5077fba3446f6e650eb94d07a0be5.zip qemu-d4c4e6fdc7f5077fba3446f6e650eb94d07a0be5.tar.gz qemu-d4c4e6fdc7f5077fba3446f6e650eb94d07a0be5.tar.bz2 |
usb: remove dead assignments, spotted by clang analyzer
Value stored is never read.
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'hw/usb-hub.c')
-rw-r--r-- | hw/usb-hub.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/hw/usb-hub.c b/hw/usb-hub.c index 1aee7fe..2a1edfc 100644 --- a/hw/usb-hub.c +++ b/hw/usb-hub.c @@ -366,11 +366,10 @@ static int usb_hub_handle_control(USBDevice *dev, int request, int value, { unsigned int n = index - 1; USBHubPort *port; - USBDevice *dev; + if (n >= s->nb_ports) goto fail; port = &s->ports[n]; - dev = port->port.dev; switch(value) { case PORT_ENABLE: port->wPortStatus &= ~PORT_STAT_ENABLE; |