qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH] object_new_with_type: remove redundant code


From: Cao jin
Subject: Re: [Qemu-devel] [PATCH] object_new_with_type: remove redundant code
Date: Thu, 5 Nov 2015 14:24:01 +0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.1.0

sorry for this, I am wrong at removing type_initialize.
please forget it

On 11/05/2015 01:19 PM, Cao jin wrote:
g_assert & type_initialize are called in object_initialize_with_type

Signed-off-by: Cao jin <address@hidden>
---
  qom/object.c | 3 ---
  1 file changed, 3 deletions(-)

diff --git a/qom/object.c b/qom/object.c
index fc6e161..43ac2dd 100644
--- a/qom/object.c
+++ b/qom/object.c
@@ -423,9 +423,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->instance_size, type);
      obj->free = g_free;


--
Yours Sincerely,

Cao Jin



reply via email to

[Prev in Thread] Current Thread [Next in Thread]