Received: from eggs.gnu.org ([2001:4830:134:3::10]:44608) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ej9td-0000W9-56 for qemu-devel@nongnu.org; Tue, 06 Feb 2018 15:31:18 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ej9tZ-00031R-R6 for qemu-devel@nongnu.org; Tue, 06 Feb 2018 15:31:17 -0500 Received: from mail-eopbgr00130.outbound.protection.outlook.com ([40.107.0.130]:53824 helo=EUR02-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 1ej9tZ-00030f-HR for qemu-devel@nongnu.org; Tue, 06 Feb 2018 15:31:13 -0500 From: Roman Kagan Date: Tue, 6 Feb 2018 23:30:17 +0300 Message-Id: <20180206203048.11096-4-rkagan@virtuozzo.com> In-Reply-To: <20180206203048.11096-1-rkagan@virtuozzo.com> References: <20180206203048.11096-1-rkagan@virtuozzo.com> MIME-Version: 1.0 Content-Type: text/plain Subject: [Qemu-devel] [RFC PATCH 03/34] 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 , "Denis V. Lunev" , Jan Dakinevich , Konrad Rzeszutek Wilk , Vitaly Kuznetsov , Cathy Avery , Ben Warren , si-wei liu , "Marcos E. Matsunaga" , Krish Sadhukhan , Vadim Rozenfeld 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 c9a4bb539d..e762eac79f 100644 --- a/target/i386/hyperv.c +++ b/target/i386/hyperv.c @@ -88,7 +88,7 @@ HvSintRoute *kvm_hv_sint_route_create(uint32_t vp_index, 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.14.3