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 /usb-linux.c | |
parent | 7300c07991e05e66e04528aa1c72e31c127a79cd (diff) |
usb: remove dead assignments, spotted by clang analyzer
Value stored is never read.
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'usb-linux.c')
-rw-r--r-- | usb-linux.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/usb-linux.c b/usb-linux.c index d0d7cff496..ecfe668b11 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) { |