From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:48371) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YG9WO-00055A-G6 for qemu-devel@nongnu.org; Tue, 27 Jan 2015 12:01:53 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YG99v-0002gS-G4 for qemu-devel@nongnu.org; Tue, 27 Jan 2015 11:42:02 -0500 Received: from mx1.redhat.com ([209.132.183.28]:39470) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YG99v-0002g6-5o for qemu-devel@nongnu.org; Tue, 27 Jan 2015 11:38:35 -0500 Received: from int-mx14.intmail.prod.int.phx2.redhat.com (int-mx14.intmail.prod.int.phx2.redhat.com [10.5.11.27]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id t0RGcY6o013686 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL) for ; Tue, 27 Jan 2015 11:38:34 -0500 From: Markus Armbruster Date: Tue, 27 Jan 2015 17:38:29 +0100 Message-Id: <1422376711-31648-5-git-send-email-armbru@redhat.com> In-Reply-To: <1422376711-31648-1-git-send-email-armbru@redhat.com> References: <1422376711-31648-1-git-send-email-armbru@redhat.com> Subject: [Qemu-devel] [PATCH 4/6] rdma: g_malloc0() can't fail, bury dead error handling List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: qemu-trivial@redhat.com Signed-off-by: Markus Armbruster --- migration/rdma.c | 3 --- 1 file changed, 3 deletions(-) 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; - } } /* -- 1.9.3