qemu-patch-raspberry4/hw/net/rocker
Mao Zhongyi 107e4b352c net/rocker: Remove the dead error handling
Memory allocation functions like world_alloc, desc_ring_alloc etc,
they are all wrappers around g_malloc, g_new etc. But g_malloc and
similar functions doesn't return null. Because they ignore the fact
that g_malloc() of 0 bytes returns null. So error checks for these
allocation failure are superfluous. Now, remove them entirely.

Cc: jasowang@redhat.com
Cc: jiri@resnulli.us
Cc: armbru@redhat.com
Cc: f4bug@amsat.org
Signed-off-by: Mao Zhongyi <maozy.fnst@cn.fujitsu.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
2017-09-08 08:17:37 +08:00
..
qmp-norocker.c hw/net: Clean up includes 2016-01-29 15:07:23 +00:00
rocker.c net/rocker: Remove the dead error handling 2017-09-08 08:17:37 +08:00
rocker.h Clean up ill-advised or unusual header guards 2016-07-12 16:20:46 +02:00
rocker_desc.c net/rocker: Remove the dead error handling 2017-09-08 08:17:37 +08:00
rocker_desc.h Clean up ill-advised or unusual header guards 2016-07-12 16:20:46 +02:00
rocker_fp.c net/rocker: Remove the dead error handling 2017-09-08 08:17:37 +08:00
rocker_fp.h Clean up ill-advised or unusual header guards 2016-07-12 16:20:46 +02:00
rocker_hw.h Clean up ill-advised or unusual header guards 2016-07-12 16:20:46 +02:00
rocker_of_dpa.c net/rocker: Remove the dead error handling 2017-09-08 08:17:37 +08:00
rocker_of_dpa.h Clean up ill-advised or unusual header guards 2016-07-12 16:20:46 +02:00
rocker_tlv.h Clean up ill-advised or unusual header guards 2016-07-12 16:20:46 +02:00
rocker_world.c net/rocker: Remove the dead error handling 2017-09-08 08:17:37 +08:00
rocker_world.h Clean up ill-advised or unusual header guards 2016-07-12 16:20:46 +02:00