mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-11 16:29:05 +00:00
svcrdma: Remove unused variables in xprt_rdma_bc_allocate()
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>
This commit is contained in:
parent
96a58f9c19
commit
9a16a34d21
@ -164,13 +164,9 @@ static int
|
|||||||
xprt_rdma_bc_allocate(struct rpc_task *task)
|
xprt_rdma_bc_allocate(struct rpc_task *task)
|
||||||
{
|
{
|
||||||
struct rpc_rqst *rqst = task->tk_rqstp;
|
struct rpc_rqst *rqst = task->tk_rqstp;
|
||||||
struct svc_xprt *sxprt = rqst->rq_xprt->bc_xprt;
|
|
||||||
size_t size = rqst->rq_callsize;
|
size_t size = rqst->rq_callsize;
|
||||||
struct svcxprt_rdma *rdma;
|
|
||||||
struct page *page;
|
struct page *page;
|
||||||
|
|
||||||
rdma = container_of(sxprt, struct svcxprt_rdma, sc_xprt);
|
|
||||||
|
|
||||||
if (size > PAGE_SIZE) {
|
if (size > PAGE_SIZE) {
|
||||||
WARN_ONCE(1, "svcrdma: large bc buffer request (size %zu)\n",
|
WARN_ONCE(1, "svcrdma: large bc buffer request (size %zu)\n",
|
||||||
size);
|
size);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user