diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2012-01-11 11:16:20 +0100 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2012-02-10 11:31:57 +0100 |
commit | 7f74a56b1416a759c1da0a280e99242662f350c5 (patch) | |
tree | e724d6c71a74dc52cd0ad40086a86f4e6623abc9 /hw/usb-audio.c | |
parent | e74495e3ade61ceabc5a00713900d8295e4042f4 (diff) |
usb: kill handle_packet callback
All drivers except usb-hub use usb_generic_handle_packet. The only
reason the usb hub has its own function is that it used to be called
with packets which are intended for downstream devices. With the new,
separate device lookup step this doesn't happen any more, so the need
for a different handle_packet callback is gone.
So we can kill the handle_packet callback and just call
usb_generic_handle_packet directly. The special hub handling in
usb_handle_packet() can go away for the same reason.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'hw/usb-audio.c')
-rw-r--r-- | hw/usb-audio.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/hw/usb-audio.c b/hw/usb-audio.c index cd589b718a..a4ea0b0fe2 100644 --- a/hw/usb-audio.c +++ b/hw/usb-audio.c @@ -691,7 +691,6 @@ static void usb_audio_class_init(ObjectClass *klass, void *data) k->product_desc = "QEMU USB Audio Interface"; k->usb_desc = &desc_audio; k->init = usb_audio_initfn; - k->handle_packet = usb_generic_handle_packet; k->handle_reset = usb_audio_handle_reset; k->handle_control = usb_audio_handle_control; k->handle_data = usb_audio_handle_data; |