mirror of
https://github.com/xemu-project/xemu.git
synced 2026-11-11 00:28:59 +01:00
usb-uhci: cleanup UHCIAsync allocation & initialization.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
This commit is contained in:
1 parent
81d37739df
commit
326700e35d
1 file changed
+1
-7
+1
-7
@@ -159,15 +159,9 @@ typedef struct UHCI_QH {
|
||||
|
||||
static UHCIAsync *uhci_async_alloc(UHCIState *s)
|
||||
{
|
||||
UHCIAsync *async = g_malloc(sizeof(UHCIAsync));
|
||||
UHCIAsync *async = g_new0(UHCIAsync, 1);
|
||||
|
||||
memset(&async->packet, 0, sizeof(async->packet));
|
||||
async->uhci = s;
|
||||
async->valid = 0;
|
||||
async->td = 0;
|
||||
async->token = 0;
|
||||
async->done = 0;
|
||||
async->isoc = 0;
|
||||
usb_packet_init(&async->packet);
|
||||
pci_dma_sglist_init(&async->sgl, &s->dev, 1);
|
||||
|
||||
|
||||
Reference in new issue
Block a user