diff options
| author | Igor Mammedov <imammedo@redhat.com> | 2017-10-05 15:51:09 +0200 |
|---|---|---|
| committer | Eduardo Habkost <ehabkost@redhat.com> | 2017-10-27 16:04:28 +0200 |
| commit | 81491c2846b7a818eb069dbc5f688537e382fc83 (patch) | |
| tree | d13ea83e3a2a270df9e84c0c4ef68de12797b6d5 /scripts/git-submodule.sh | |
| parent | e9135ab399efd4aa2edc3da691d211475172e91e (diff) | |
| download | focaccia-qemu-81491c2846b7a818eb069dbc5f688537e382fc83.tar.gz focaccia-qemu-81491c2846b7a818eb069dbc5f688537e382fc83.zip | |
mips: use object_new() instead of gnew()+object_initialize()
object_initialize() is intended for inplace initialization of objects, but here it's first allocated with g_new0() and then initialized with object_initialize(). QEMU already has API to do this (object_new), so do object creation with suitable for usecase API. Signed-off-by: Igor Mammedov <imammedo@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Tested-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Message-Id: <1507211474-188400-36-git-send-email-imammedo@redhat.com> Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Diffstat (limited to 'scripts/git-submodule.sh')
0 files changed, 0 insertions, 0 deletions