]> git.openfabrics.org - ~shefty/librdmacm.git/commitdiff
[2/4] cma: Remove the unused variable 'id_priv'
authorBart Van Assche <bvanassche@acm.org>
Sun, 28 Jul 2013 09:19:15 +0000 (11:19 +0200)
committerSean Hefty <sean.hefty@intel.com>
Tue, 30 Jul 2013 22:43:55 +0000 (15:43 -0700)
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 <bvanassche@acm.org>
src/cma.c

index baebecdd96322341bc59f20dc093554609ac9d5e..374844c16449b7e7973419ee22f0e10c321c00ac 100644 (file)
--- 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;