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 /hw/usb-uhci.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 'hw/usb-uhci.c')
-rw-r--r-- | hw/usb-uhci.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/hw/usb-uhci.c b/hw/usb-uhci.c index 7c45d7f512..624d55b3b2 100644 --- a/hw/usb-uhci.c +++ b/hw/usb-uhci.c @@ -698,7 +698,6 @@ static int uhci_complete_td(UHCIState *s, UHCI_TD *td, UHCIAsync *async, uint32_ if (pid == USB_TOKEN_IN) { if (len > max_len) { - len = max_len; ret = USB_RET_BABBLE; goto out; } @@ -865,8 +864,7 @@ static void uhci_async_complete(USBPacket *packet, void *opaque) UHCI_TD td; uint32_t link = async->td; uint32_t int_mask = 0, val; - int len; - + cpu_physical_memory_read(link & ~0xf, (uint8_t *) &td, sizeof(td)); le32_to_cpus(&td.link); le32_to_cpus(&td.ctrl); @@ -874,7 +872,7 @@ static void uhci_async_complete(USBPacket *packet, void *opaque) le32_to_cpus(&td.buffer); uhci_async_unlink(s, async); - len = uhci_complete_td(s, &td, async, &int_mask); + uhci_complete_td(s, &td, async, &int_mask); s->pending_int_mask |= int_mask; /* update the status bits of the TD */ |