Commit 9066df13 authored by Gerd Hoffmann's avatar Gerd Hoffmann
Browse files

ohci: get ohci state via container_of()


Signed-off-by: default avatarGerd Hoffmann <kraxel@redhat.com>
parent 7b5a44c5
......@@ -577,7 +577,7 @@ static void ohci_process_lists(OHCIState *ohci, int completion);
static void ohci_async_complete_packet(USBPacket *packet, void *opaque)
{
OHCIState *ohci = opaque;
OHCIState *ohci = container_of(packet, OHCIState, usb_packet);
#ifdef DEBUG_PACKET
DPRINTF("Async packet complete\n");
#endif
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment