From d4c4e6fdc7f5077fba3446f6e650eb94d07a0be5 Mon Sep 17 00:00:00 2001 From: Blue Swirl Date: Sun, 25 Apr 2010 18:23:04 +0000 Subject: usb: remove dead assignments, spotted by clang analyzer Value stored is never read. Signed-off-by: Blue Swirl --- hw/usb-hub.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'hw/usb-hub.c') 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; -- cgit v1.1