virtio: vdpa: omit check return of g_malloc
commit986d4f78742b7419f01d8ede242abde6f2f74cf2
authorLi Qiang <liq3ea@163.com>
Wed, 19 Aug 2020 14:43:09 +0000 (19 07:43 -0700)
committerLaurent Vivier <laurent@vivier.eu>
Wed, 23 Sep 2020 17:08:29 +0000 (23 19:08 +0200)
treeea946925f78744751be2528c2d6fa3fd9640569a
parent3e8529dd8554d77467734db6f84b3619eeeb6895
virtio: vdpa: omit check return of g_malloc

If g_malloc fails, the application will be terminated.
No need to check the return value of g_malloc.

Signed-off-by: Li Qiang <liq3ea@163.com>
Reviewed-by: Laurent Vivier <lvivier@redhat.com>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20200819144309.67579-1-liq3ea@163.com>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
hw/virtio/vhost-vdpa.c