summaryrefslogtreecommitdiff
path: root/hw/usb.c
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2011-05-16 10:34:53 +0200
committerGerd Hoffmann <kraxel@redhat.com>2011-05-26 11:55:03 +0200
commiteb5e680ae5a72b999946e5618c501648367734a8 (patch)
tree906f6b56e9837ae4f1fad70ee7ee878a90d63319 /hw/usb.c
parent4ff658fb6c4f1cb7f771b16f808547e4f5767d02 (diff)
downloadqemu-eb5e680ae5a72b999946e5618c501648367734a8.tar.gz
qemu-eb5e680ae5a72b999946e5618c501648367734a8.tar.bz2
qemu-eb5e680ae5a72b999946e5618c501648367734a8.zip
usb: move cancel callback to USBDeviceInfo
Remove the cancel callback from the USBPacket struct, move it over to USBDeviceInfo. Zap usb_defer_packet() which is obsolete now. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'hw/usb.c')
-rw-r--r--hw/usb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/usb.c b/hw/usb.c
index 8a9a7fcb25..4a39cbcc7d 100644
--- a/hw/usb.c
+++ b/hw/usb.c
@@ -345,6 +345,6 @@ void usb_packet_complete(USBDevice *dev, USBPacket *p)
void usb_cancel_packet(USBPacket * p)
{
assert(p->owner != NULL);
- p->cancel_cb(p, p->cancel_opaque);
+ p->owner->info->cancel_packet(p->owner, p);
p->owner = NULL;
}