]> git.karo-electronics.de Git - linux-beck.git/commitdiff
svcrdma: Remove unused variables in xprt_rdma_bc_allocate()
authorChuck Lever <chuck.lever@oracle.com>
Tue, 29 Nov 2016 16:05:15 +0000 (11:05 -0500)
committerJ. Bruce Fields <bfields@redhat.com>
Wed, 30 Nov 2016 22:31:14 +0000 (17:31 -0500)
Clean up.

/linux-2.6/net/sunrpc/xprtrdma/svc_rdma_backchannel.c: In function
 ‘xprt_rdma_bc_allocate’:
linux-2.6/net/sunrpc/xprtrdma/svc_rdma_backchannel.c:169:23: warning:
 variable ‘rdma’ set but not used [-Wunused-but-set-variable]
  struct svcxprt_rdma *rdma;
                       ^

Fixes: 5d252f90a800 ("svcrdma: Add class for RDMA backwards ...")
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
net/sunrpc/xprtrdma/svc_rdma_backchannel.c

index 6035c5a380a6b10198a01eada0732f46ca2e93fc..288e35c2d8f4d7e28a5764469d6bbeceb40d0843 100644 (file)
@@ -164,13 +164,9 @@ static int
 xprt_rdma_bc_allocate(struct rpc_task *task)
 {
        struct rpc_rqst *rqst = task->tk_rqstp;
-       struct svc_xprt *sxprt = rqst->rq_xprt->bc_xprt;
        size_t size = rqst->rq_callsize;
-       struct svcxprt_rdma *rdma;
        struct page *page;
 
-       rdma = container_of(sxprt, struct svcxprt_rdma, sc_xprt);
-
        if (size > PAGE_SIZE) {
                WARN_ONCE(1, "svcrdma: large bc buffer request (size %zu)\n",
                          size);