[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-trivial] [PATCH 87/88] hw/net/rocker: use g_new() family of functi
From: |
Philippe Mathieu-Daudé |
Subject: |
[Qemu-trivial] [PATCH 87/88] hw/net/rocker: use g_new() family of functions |
Date: |
Fri, 6 Oct 2017 20:50:22 -0300 |
Signed-off-by: Philippe Mathieu-Daudé <address@hidden>
---
hw/net/rocker/rocker_of_dpa.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/hw/net/rocker/rocker_of_dpa.c b/hw/net/rocker/rocker_of_dpa.c
index 191a58e0a7..990f4157a0 100644
--- a/hw/net/rocker/rocker_of_dpa.c
+++ b/hw/net/rocker/rocker_of_dpa.c
@@ -2306,7 +2306,7 @@ static void of_dpa_flow_fill(void *cookie, void *value,
void *user_data)
return;
}
- new = g_malloc0(sizeof(*new));
+ new = g_new0(RockerOfDpaFlowList, 1);
nflow = new->value = g_malloc0(sizeof(*nflow));
nkey = nflow->key = g_malloc0(sizeof(*nkey));
nmask = nflow->mask = g_malloc0(sizeof(*nmask));
@@ -2478,7 +2478,7 @@ static void of_dpa_group_fill(void *key, void *value,
void *user_data)
return;
}
- new = g_malloc0(sizeof(*new));
+ new = g_new0(RockerOfDpaGroupList, 1);
ngroup = new->value = g_malloc0(sizeof(*ngroup));
ngroup->id = group->id;
--
2.14.2
- [Qemu-trivial] [PATCH 80/88] numa: use g_new() family of functions, (continued)
- [Qemu-trivial] [PATCH 80/88] numa: use g_new() family of functions, Philippe Mathieu-Daudé, 2017/10/06
- [Qemu-trivial] [PATCH 81/88] hw/acpi: use g_new() family of functions, Philippe Mathieu-Daudé, 2017/10/06
- [Qemu-trivial] [PATCH 82/88] hw/ipmi: use g_new() family of functions, Philippe Mathieu-Daudé, 2017/10/06
- [Qemu-trivial] [PATCH 83/88] hw/pci: use g_new() family of functions, Philippe Mathieu-Daudé, 2017/10/06
- [Qemu-trivial] [PATCH 84/88] hw/scsi: use g_new() family of functions, Philippe Mathieu-Daudé, 2017/10/06
- [Qemu-trivial] [PATCH 85/88] hw/usb: use g_new() family of functions, Philippe Mathieu-Daudé, 2017/10/06
- [Qemu-trivial] [PATCH 86/88] net/hub: use g_new() family of functions, Philippe Mathieu-Daudé, 2017/10/06
- [Qemu-trivial] [PATCH 88/88] scripts/coverity-model: use g_new() family of functions, Philippe Mathieu-Daudé, 2017/10/06
- [Qemu-trivial] [PATCH 87/88] hw/net/rocker: use g_new() family of functions,
Philippe Mathieu-Daudé <=
- Re: [Qemu-trivial] [PATCH 00/88] use g_new() family of functions, Philippe Mathieu-Daudé, 2017/10/06
- Re: [Qemu-trivial] [Qemu-devel] [PATCH 00/88] use g_new() family of functions, no-reply, 2017/10/06
- Re: [Qemu-trivial] [Qemu-devel] [PATCH 00/88] use g_new() family of functions, no-reply, 2017/10/07
- Re: [Qemu-trivial] [Qemu-devel] [PATCH 00/88] use g_new() family of functions, Peter Maydell, 2017/10/07