target: hax: replace g_malloc with g_new0
commit090627a9d9b3ff589062703f4f553675ebe2f694
authorLi Qiang <liq3ea@gmail.com>
Mon, 26 Nov 2018 09:56:19 +0000 (26 01:56 -0800)
committerLaurent Vivier <laurent@vivier.eu>
Tue, 11 Dec 2018 17:28:46 +0000 (11 18:28 +0100)
tree95404b9f652687276c1f90e7666b0838a9717f6c
parent15e10756d9f615cd93f84ac1489d179d02584cc2
target: hax: replace g_malloc with g_new0

And also the g_malloc doesn't need check return value,
remove it.

Cc: qemu-trivial@nongnu.org
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Li Qiang <liq3ea@gmail.com>
Reviewed-by: Laurent Vivier <laurent@vivier.eu>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <1543226179-5135-1-git-send-email-liq3ea@gmail.com>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
target/i386/hax-all.c