diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2011-05-16 10:34:53 +0200 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2011-05-26 11:55:03 +0200 |
commit | eb5e680ae5a72b999946e5618c501648367734a8 (patch) | |
tree | 906f6b56e9837ae4f1fad70ee7ee878a90d63319 /hw/usb.c | |
parent | 4ff658fb6c4f1cb7f771b16f808547e4f5767d02 (diff) |
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; } |