mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
usb: remove dead assignments, spotted by clang analyzer
Value stored is never read. Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
This commit is contained in:
parent
7300c07991
commit
d4c4e6fdc7
7 changed files with 24 additions and 14 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue