From: Sean Hefty <[email protected]>

alloca doesn't return a NULL pointer on failure.

Signed-off-by: Sean Hefty <[email protected]>
---
 src/cma.c |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)

diff --git a/src/cma.c b/src/cma.c
index 9a49a5b..1a88e5c 100644
--- a/src/cma.c
+++ b/src/cma.c
@@ -720,9 +720,6 @@ static int ucma_query_path(struct rdma_cm_id *id)
 
        size = sizeof(*resp) + sizeof(struct ibv_path_data) * 6;
        resp = alloca(size);
-       if (!resp)
-               return ERR(ENOMEM);
-
        CMA_INIT_CMD_RESP(&cmd, sizeof cmd, QUERY, resp, size);
        id_priv = container_of(id, struct cma_id_private, id);
        cmd.id = id_priv->handle;
-- 
1.7.3

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to