svcrdma: Remove unused variable
authorChuck Lever <chuck.lever@oracle.com>
Tue, 13 Jan 2015 16:02:45 +0000 (11:02 -0500)
committerJ. Bruce Fields <bfields@redhat.com>
Thu, 15 Jan 2015 20:01:43 +0000 (15:01 -0500)
Nit: remove an unused variable to squelch a compiler warning.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Reviewed-by: Steve Wise <swise@opengridcomputing.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
net/sunrpc/xprtrdma/svc_rdma_transport.c

index 4e618808bc98d2960f16f4d195b2194e947374d0..4ba11d0cefe1e4771d86d609786189197226ad5c 100644 (file)
@@ -687,7 +687,6 @@ static struct svc_xprt *svc_rdma_create(struct svc_serv *serv,
 {
        struct rdma_cm_id *listen_id;
        struct svcxprt_rdma *cma_xprt;
-       struct svc_xprt *xprt;
        int ret;
 
        dprintk("svcrdma: Creating RDMA socket\n");
@@ -698,7 +697,6 @@ static struct svc_xprt *svc_rdma_create(struct svc_serv *serv,
        cma_xprt = rdma_create_xprt(serv, 1);
        if (!cma_xprt)
                return ERR_PTR(-ENOMEM);
-       xprt = &cma_xprt->sc_xprt;
 
        listen_id = rdma_create_id(rdma_listen_handler, cma_xprt, RDMA_PS_TCP,
                                   IB_QPT_RC);