]> Git Repo - qemu.git/commitdiff
rdma: g_malloc0() can't fail, bury dead error handling
authorMarkus Armbruster <[email protected]>
Wed, 4 Feb 2015 10:26:05 +0000 (11:26 +0100)
committerMichael Tokarev <[email protected]>
Tue, 10 Feb 2015 06:27:20 +0000 (09:27 +0300)
Signed-off-by: Markus Armbruster <[email protected]>
Reviewed-by: Eric Blake <[email protected]>
Reviewed-by: Gonglei <[email protected]>
Signed-off-by: Michael Tokarev <[email protected]>
migration/rdma.c

index fc351eabf2c20c836e08218045e48ebd1ee0e7f7..29285e6fd8cb7f4383d1c263cdbe13dbc81ebef5 100644 (file)
@@ -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;
-        }
     }
 
     /*
This page took 0.029891 seconds and 4 git commands to generate.