diff mbox

[4/6] rdma: g_malloc0() can't fail, bury dead error handling

Message ID 1422376711-31648-5-git-send-email-armbru@redhat.com
State New
Headers show

Commit Message

Markus Armbruster Jan. 27, 2015, 4:38 p.m. UTC
Signed-off-by: Markus Armbruster <armbru@redhat.com>
---
 migration/rdma.c | 3 ---
 1 file changed, 3 deletions(-)
diff mbox

Patch

diff --git a/migration/rdma.c b/migration/rdma.c
index b32dbdf..306570d 100644
--- a/migration/rdma.c
+++ b/migration/rdma.c
@@ -1147,9 +1147,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;
-        }
     }
 
     /*