projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a677a78
)
rpc: remove unneeded variable 'ret' in rdma_listen_handler
author
zhong jiang
<zhongjiang@huawei.com>
Tue, 7 Aug 2018 11:20:00 +0000
(07:20 -0400)
committer
J. Bruce Fields
<bfields@redhat.com>
Thu, 9 Aug 2018 20:11:21 +0000
(16:11 -0400)
The ret is not modified after initalization, So just remove the variable
and return 0.
Signed-off-by: zhong jiang <zhongjiang@huawei.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
net/sunrpc/xprtrdma/svc_rdma_transport.c
patch
|
blob
|
history
diff --git
a/net/sunrpc/xprtrdma/svc_rdma_transport.c
b/net/sunrpc/xprtrdma/svc_rdma_transport.c
index e9535a66bab0044de5aee1fa3a3df0f837430701..2317cf79a1ed70dc17e8dab4886ef6ccad76bb7b 100644
(file)
--- a/
net/sunrpc/xprtrdma/svc_rdma_transport.c
+++ b/
net/sunrpc/xprtrdma/svc_rdma_transport.c
@@
-296,7
+296,6
@@
static int rdma_listen_handler(struct rdma_cm_id *cma_id,
struct rdma_cm_event *event)
{
struct sockaddr *sap = (struct sockaddr *)&cma_id->route.addr.src_addr;
- int ret = 0;
trace_svcrdma_cm_event(event, sap);
@@
-315,7
+314,7
@@
static int rdma_listen_handler(struct rdma_cm_id *cma_id,
break;
}
- return
ret
;
+ return
0
;
}
static int rdma_cma_handler(struct rdma_cm_id *cma_id,