Skip to content

Commit

Permalink
uhci: Fix double unlink
Browse files Browse the repository at this point in the history
uhci_async_cancel() already does a uhci_async_unlink().

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
  • Loading branch information
jwrdegoede authored and kraxel committed Nov 21, 2012
1 parent 1cbdde9 commit 71d2c9c
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion hw/usb/hcd-uhci.c
Expand Up @@ -963,7 +963,6 @@ static void uhci_async_complete(USBPort *port, USBPacket *packet)
UHCIState *s = async->queue->uhci;

if (packet->status == USB_RET_REMOVE_FROM_QUEUE) {
uhci_async_unlink(async);
uhci_async_cancel(async);
return;
}
Expand Down

0 comments on commit 71d2c9c

Please sign in to comment.