Skip to content

Commit f5426d3

Browse files
chuckleverJ. Bruce Fields
authored andcommitted
svcrdma: Remove unused variable in rdma_copy_tail()
Clean up. linux-2.6/net/sunrpc/xprtrdma/svc_rdma_recvfrom.c: In function ‘rdma_copy_tail’: linux-2.6/net/sunrpc/xprtrdma/svc_rdma_recvfrom.c:376:6: warning: variable ‘ret’ set but not used [-Wunused-but-set-variable] int ret; ^ Fixes: a97c331 ("svcrdma: Handle additional inline content") Signed-off-by: Chuck Lever <chuck.lever@oracle.com> Signed-off-by: J. Bruce Fields <bfields@redhat.com>
1 parent 9a16a34 commit f5426d3

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

net/sunrpc/xprtrdma/svc_rdma_recvfrom.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -373,9 +373,7 @@ rdma_copy_tail(struct svc_rqst *rqstp, struct svc_rdma_op_ctxt *head,
373373
u32 position, u32 byte_count, u32 page_offset, int page_no)
374374
{
375375
char *srcp, *destp;
376-
int ret;
377376

378-
ret = 0;
379377
srcp = head->arg.head[0].iov_base + position;
380378
byte_count = head->arg.head[0].iov_len - position;
381379
if (byte_count > PAGE_SIZE) {

0 commit comments

Comments
 (0)