qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PULL 34/46] rdma: g_malloc0() can't fail, bury dead error


From: Michael Tokarev
Subject: [Qemu-devel] [PULL 34/46] rdma: g_malloc0() can't fail, bury dead error handling
Date: Tue, 10 Feb 2015 09:34:23 +0300

From: Markus Armbruster <address@hidden>

Signed-off-by: Markus Armbruster <address@hidden>
Reviewed-by: Eric Blake <address@hidden>
Reviewed-by: Gonglei <address@hidden>
Signed-off-by: Michael Tokarev <address@hidden>
---
 migration/rdma.c | 3 ---
 1 file changed, 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;
-        }
     }
 
     /*
-- 
2.1.4




reply via email to

[Prev in Thread] Current Thread [Next in Thread]