From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:47657) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Un59A-0001fz-8P for qemu-devel@nongnu.org; Thu, 13 Jun 2013 06:52:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Un599-0007s5-1K for qemu-devel@nongnu.org; Thu, 13 Jun 2013 06:52:52 -0400 From: Hu Tao Date: Thu, 13 Jun 2013 18:51:49 +0800 Message-Id: <1371120709-18923-3-git-send-email-hutao@cn.fujitsu.com> In-Reply-To: <1371120709-18923-1-git-send-email-hutao@cn.fujitsu.com> References: <1371120709-18923-1-git-send-email-hutao@cn.fujitsu.com> Subject: [Qemu-devel] [PATCH] remove call to type_initialize in object_new_with_type List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-trivial@nongnu.org, qemu-devel@nongnu.org Since it's called in object_initialize_with_type later. Signed-off-by: Hu Tao --- qom/object.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/qom/object.c b/qom/object.c index 803b94b..38dc45e 100644 --- a/qom/object.c +++ b/qom/object.c @@ -406,9 +406,6 @@ Object *object_new_with_type(Type type) { Object *obj; - g_assert(type != NULL); - type_initialize(type); - obj = g_malloc(type->instance_size); object_initialize_with_type(obj, type); obj->free = g_free; -- 1.8.2.3