提交 ac5bb5b3 编写于 作者: Z zhong jiang 提交者: J. Bruce Fields

rpc: remove unneeded variable 'ret' in rdma_listen_handler

The ret is not modified after initalization, So just remove the variable
and return 0.
Signed-off-by: Nzhong jiang <zhongjiang@huawei.com>
Signed-off-by: NJ. Bruce Fields <bfields@redhat.com>
上级 a677a783
...@@ -296,7 +296,6 @@ static int rdma_listen_handler(struct rdma_cm_id *cma_id, ...@@ -296,7 +296,6 @@ static int rdma_listen_handler(struct rdma_cm_id *cma_id,
struct rdma_cm_event *event) struct rdma_cm_event *event)
{ {
struct sockaddr *sap = (struct sockaddr *)&cma_id->route.addr.src_addr; struct sockaddr *sap = (struct sockaddr *)&cma_id->route.addr.src_addr;
int ret = 0;
trace_svcrdma_cm_event(event, sap); trace_svcrdma_cm_event(event, sap);
...@@ -315,7 +314,7 @@ static int rdma_listen_handler(struct rdma_cm_id *cma_id, ...@@ -315,7 +314,7 @@ static int rdma_listen_handler(struct rdma_cm_id *cma_id,
break; break;
} }
return ret; return 0;
} }
static int rdma_cma_handler(struct rdma_cm_id *cma_id, static int rdma_cma_handler(struct rdma_cm_id *cma_id,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册