mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 08:13:54 -06:00
ohci: get ohci state via container_of()
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
This commit is contained in:
parent
7b5a44c546
commit
9066df13a3
1 changed files with 1 additions and 1 deletions
|
@ -577,7 +577,7 @@ static void ohci_process_lists(OHCIState *ohci, int completion);
|
||||||
|
|
||||||
static void ohci_async_complete_packet(USBPacket *packet, void *opaque)
|
static void ohci_async_complete_packet(USBPacket *packet, void *opaque)
|
||||||
{
|
{
|
||||||
OHCIState *ohci = opaque;
|
OHCIState *ohci = container_of(packet, OHCIState, usb_packet);
|
||||||
#ifdef DEBUG_PACKET
|
#ifdef DEBUG_PACKET
|
||||||
DPRINTF("Async packet complete\n");
|
DPRINTF("Async packet complete\n");
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue