提交 f5426d37 编写于 作者: C Chuck Lever 提交者: J. Bruce Fields

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: a97c331f ("svcrdma: Handle additional inline content")
Signed-off-by: NChuck Lever <chuck.lever@oracle.com>
Signed-off-by: NJ. Bruce Fields <bfields@redhat.com>
上级 9a16a34d
...@@ -373,9 +373,7 @@ rdma_copy_tail(struct svc_rqst *rqstp, struct svc_rdma_op_ctxt *head, ...@@ -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) u32 position, u32 byte_count, u32 page_offset, int page_no)
{ {
char *srcp, *destp; char *srcp, *destp;
int ret;
ret = 0;
srcp = head->arg.head[0].iov_base + position; srcp = head->arg.head[0].iov_base + position;
byte_count = head->arg.head[0].iov_len - position; byte_count = head->arg.head[0].iov_len - position;
if (byte_count > PAGE_SIZE) { if (byte_count > PAGE_SIZE) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册