aboutsummaryrefslogtreecommitdiff
path: root/migration/rdma.c
diff options
context:
space:
mode:
authorMarkus Armbruster <armbru@redhat.com>2015-02-04 11:26:05 +0100
committerMichael Tokarev <mjt@tls.msk.ru>2015-02-10 09:27:20 +0300
commite75bef035a80a1bd406375f22e32e37010bbdcd7 (patch)
treefb50f83ea5a6e6bba6c59a677163c597c5767c1b /migration/rdma.c
parent9834fe02b00552648d498ca561b51f8ff1d7df31 (diff)
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/rdma.c')
-rw-r--r--migration/rdma.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/migration/rdma.c b/migration/rdma.c
index fc351eabf2..29285e6fd8 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;
- }
}
/*