diff options
author | Markus Armbruster <armbru@redhat.com> | 2015-02-04 11:26:05 +0100 |
---|---|---|
committer | Michael Tokarev <mjt@tls.msk.ru> | 2015-02-10 09:27:20 +0300 |
commit | e75bef035a80a1bd406375f22e32e37010bbdcd7 (patch) | |
tree | fb50f83ea5a6e6bba6c59a677163c597c5767c1b /migration | |
parent | 9834fe02b00552648d498ca561b51f8ff1d7df31 (diff) | |
download | qemu-e75bef035a80a1bd406375f22e32e37010bbdcd7.zip qemu-e75bef035a80a1bd406375f22e32e37010bbdcd7.tar.gz qemu-e75bef035a80a1bd406375f22e32e37010bbdcd7.tar.bz2 |
rdma: g_malloc0() can't fail, bury dead error handling
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Gonglei <arei.gonglei@huawei.com>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Diffstat (limited to 'migration')
-rw-r--r-- | migration/rdma.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/migration/rdma.c b/migration/rdma.c index fc351ea..29285e6 100644 --- a/migration/rdma.c +++ b/migration/rdma.c @@ -1121,9 +1121,6 @@ static int qemu_rdma_register_and_get_keys(RDMAContext *rdma, /* allocate memory to store chunk MRs */ if (!block->pmr) { block->pmr = g_malloc0(block->nb_chunks * sizeof(struct ibv_mr *)); - if (!block->pmr) { - return -1; - } } /* |