qom/object: factor out the initialization of hash table of properties
authorMasahiro Yamada <masahiroy@kernel.org>
Tue, 12 May 2020 17:26:15 +0000 (02:26 +0900)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 10 Jun 2020 16:09:57 +0000 (12:09 -0400)
commite5a0cc5e44c0344a3b8e284feeeffe43debca995
tree99aa6fd7737db8ca2370d599740aa52d30b0cc8d
parentad195c8ff562365b3e5b43e800d6acd84cb22e99
qom/object: factor out the initialization of hash table of properties

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 <masahiroy@kernel.org>
Message-Id: <20200512172615.2291999-1-masahiroy@kernel.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
qom/object.c