The variable 'id_priv' is assigned a value but is never used.
This triggers the following compiler warning:

src/cma.c:1178:25: warning: variable 'id_priv' set but not used 
[-Wunused-but-set-variable]

Hence remove this variable.

Signed-off-by: Bart Van Assche <bvanass...@acm.org>
---
 src/cma.c |    2 --
 1 file changed, 2 deletions(-)

diff --git a/src/cma.c b/src/cma.c
index baebecd..374844c 100644
--- a/src/cma.c
+++ b/src/cma.c
@@ -1175,11 +1175,9 @@ err:
 int rdma_create_srq(struct rdma_cm_id *id, struct ibv_pd *pd,
                    struct ibv_srq_init_attr *attr)
 {
-       struct cma_id_private *id_priv;
        struct ibv_srq *srq;
        int ret;
 
-       id_priv = container_of(id, struct cma_id_private, id);
        if (!pd)
                pd = id->pd;
 
-- 
1.7.10.4

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

Reply via email to