diff options
| author | Markus Armbruster | 2015-02-04 11:26:05 +0100 |
|---|---|---|
| committer | Michael Tokarev | 2015-02-10 07:27:20 +0100 |
| commit | e75bef035a80a1bd406375f22e32e37010bbdcd7 (patch) | |
| tree | fb50f83ea5a6e6bba6c59a677163c597c5767c1b /migration | |
| parent | kvm: g_malloc() can't fail, bury dead error handling (diff) | |
| download | qemu-e75bef035a80a1bd406375f22e32e37010bbdcd7.tar.gz qemu-e75bef035a80a1bd406375f22e32e37010bbdcd7.tar.xz qemu-e75bef035a80a1bd406375f22e32e37010bbdcd7.zip | |
rdma: g_malloc0() can't fail, bury dead error handling
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Gonglei <arei.gonglei@huawei.com>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Diffstat (limited to 'migration')
| -rw-r--r-- | migration/rdma.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/migration/rdma.c b/migration/rdma.c index fc351eabf2..29285e6fd8 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; - } } /* |
