From 8d6149084c6c66dc0514021264128bb2a2458930 Mon Sep 17 00:00:00 2001 From: Timo Dritschler Date: Wed, 26 Nov 2014 18:12:01 +0100 Subject: Removed superfluous memory allocations in kiro server and client --- src/kiro-server.c | 8 -------- 1 file changed, 8 deletions(-) (limited to 'src/kiro-server.c') diff --git a/src/kiro-server.c b/src/kiro-server.c index 91c86ec..b35d1d5 100644 --- a/src/kiro-server.c +++ b/src/kiro-server.c @@ -133,14 +133,6 @@ connect_client (struct rdma_cm_id *client) return -1; } - ctx->cf_mr_send = (struct kiro_rdma_mem *)calloc (1, sizeof (struct kiro_rdma_mem)); - ctx->cf_mr_recv = (struct kiro_rdma_mem *)calloc (1, sizeof (struct kiro_rdma_mem)); - - if (!ctx->cf_mr_recv || !ctx->cf_mr_send) { - g_critical ("Failed to allocate Control Flow Memory Container"); - goto error; - } - ctx->cf_mr_recv = kiro_create_rdma_memory (client->pd, sizeof (struct kiro_ctrl_msg), IBV_ACCESS_LOCAL_WRITE); ctx->cf_mr_send = kiro_create_rdma_memory (client->pd, sizeof (struct kiro_ctrl_msg), IBV_ACCESS_LOCAL_WRITE); -- cgit v1.2.3