Re: [PATCH] qom/object: factor out the initialization of hash table of properties

2020-05-21 Thread Paolo Bonzini
On 12/05/20 19:26, Masahiro Yamada wrote: > Properties are not related to the initialization of interfaces. > > The initialization of the hash table can be moved after the if-block, > and unified. > > Signed-off-by: Masahiro Yamada > --- > > qom/object.c | 8 +++- > 1 file changed, 3 inser

[PATCH] qom/object: factor out the initialization of hash table of properties

2020-05-12 Thread Masahiro Yamada
Properties are not related to the initialization of interfaces. The initialization of the hash table can be moved after the if-block, and unified. Signed-off-by: Masahiro Yamada --- qom/object.c | 8 +++- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/qom/object.c b/qom/obje