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 --- usb-linux.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'usb-linux.c') diff --git a/usb-linux.c b/usb-linux.c index d0d7cff..ecfe668 100644 --- a/usb-linux.c +++ b/usb-linux.c @@ -287,7 +287,7 @@ static void async_cancel(USBPacket *unused, void *opaque) static int usb_host_claim_interfaces(USBHostDevice *dev, int configuration) { int dev_descr_len, config_descr_len; - int interface, nb_interfaces, nb_configurations; + int interface, nb_interfaces; int ret, i; if (configuration == 0) /* address state - ignore */ @@ -299,7 +299,6 @@ static int usb_host_claim_interfaces(USBHostDevice *dev, int configuration) dev_descr_len = dev->descr[0]; if (dev_descr_len > dev->descr_len) goto fail; - nb_configurations = dev->descr[17]; i += dev_descr_len; while (i < dev->descr_len) { -- cgit v1.1