mirror of
https://github.com/torvalds/linux.git
synced 2024-11-18 01:51:53 +00:00
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: a97c331f9a
("svcrdma: Handle additional inline content")
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
This commit is contained in:
parent
9a16a34d21
commit
f5426d37f6
@ -373,9 +373,7 @@ rdma_copy_tail(struct svc_rqst *rqstp, struct svc_rdma_op_ctxt *head,
|
||||
u32 position, u32 byte_count, u32 page_offset, int page_no)
|
||||
{
|
||||
char *srcp, *destp;
|
||||
int ret;
|
||||
|
||||
ret = 0;
|
||||
srcp = head->arg.head[0].iov_base + position;
|
||||
byte_count = head->arg.head[0].iov_len - position;
|
||||
if (byte_count > PAGE_SIZE) {
|
||||
|
Loading…
Reference in New Issue
Block a user