From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:47404) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dIJ5M-0005kv-3X for qemu-devel@nongnu.org; Tue, 06 Jun 2017 14:20:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dIJ5I-0007HI-4O for qemu-devel@nongnu.org; Tue, 06 Jun 2017 14:20:08 -0400 Received: from mail-eopbgr30138.outbound.protection.outlook.com ([40.107.3.138]:64275 helo=EUR03-AM5-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dIJ5H-0007Ep-TG for qemu-devel@nongnu.org; Tue, 06 Jun 2017 14:20:04 -0400 From: Roman Kagan Date: Tue, 6 Jun 2017 21:19:33 +0300 Message-Id: <20170606181948.16238-9-rkagan@virtuozzo.com> In-Reply-To: <20170606181948.16238-1-rkagan@virtuozzo.com> References: <20170606181948.16238-1-rkagan@virtuozzo.com> MIME-Version: 1.0 Content-Type: text/plain Subject: [Qemu-devel] [PATCH 08/23] hyperv: cosmetic: g_malloc -> g_new List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Paolo Bonzini , Eduardo Habkost , Evgeny Yakovlev , "Denis V . Lunev" Signed-off-by: Roman Kagan --- target/i386/hyperv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/i386/hyperv.c b/target/i386/hyperv.c index 480bdfe..9aa5ec5 100644 --- a/target/i386/hyperv.c +++ b/target/i386/hyperv.c @@ -88,7 +88,7 @@ HvSintRoute *kvm_hv_sint_route_create(uint32_t vcpu_id, uint32_t sint, HvSintRoute *sint_route; int r, gsi; - sint_route = g_malloc0(sizeof(*sint_route)); + sint_route = g_new0(HvSintRoute, 1); r = event_notifier_init(&sint_route->sint_set_notifier, false); if (r) { goto err; -- 2.9.4