Commit e75bef03 authored by Markus Armbruster's avatar Markus Armbruster Committed by Michael Tokarev
Browse files

rdma: g_malloc0() can't fail, bury dead error handling

parent 9834fe02
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -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;
        }
    }

    /*