Commit ac5bb5b3 authored by zhong jiang's avatar zhong jiang Committed by 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: default avatarzhong jiang <zhongjiang@huawei.com>
Signed-off-by: default avatarJ. Bruce Fields <bfields@redhat.com>
parent 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%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment