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-bus.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'hw/usb-bus.c') diff --git a/hw/usb-bus.c b/hw/usb-bus.c index ee0e9e30e7..b692503f54 100644 --- a/hw/usb-bus.c +++ b/hw/usb-bus.c @@ -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; -- cgit v1.2.3