diff options
| author | Mao Zhongyi | 2017-08-14 05:33:07 +0200 |
|---|---|---|
| committer | Jason Wang | 2017-09-08 02:17:37 +0200 |
| commit | 107e4b352cc309f9bd7588ef1a44549200620078 (patch) | |
| tree | 50a7dc360ddd299a00f4a694bd56b9c27792e81e /scripts | |
| parent | net/filter-rewriter.c: Fix rewirter checksum bug when use virtio-net (diff) | |
| download | qemu-107e4b352cc309f9bd7588ef1a44549200620078.tar.gz qemu-107e4b352cc309f9bd7588ef1a44549200620078.tar.xz qemu-107e4b352cc309f9bd7588ef1a44549200620078.zip | |
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>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions
