mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
rds: ib: drop unnecessary rdma_reject
When rdma_accept fails, rdma_reject is called in it. As such, it is not necessary to execute rdma_reject again. Cc: Joe Jin <[email protected]> Cc: Junxiao Bi <[email protected]> Acked-by: Santosh Shilimkar <[email protected]> Signed-off-by: Zhu Yanjun <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
62a9fa01ad
commit
b418c5276a
1 changed files with 2 additions and 3 deletions
|
|
@ -677,9 +677,8 @@ int rds_ib_cm_handle_connect(struct rdma_cm_id *cm_id,
|
|||
event->param.conn.initiator_depth);
|
||||
|
||||
/* rdma_accept() calls rdma_reject() internally if it fails */
|
||||
err = rdma_accept(cm_id, &conn_param);
|
||||
if (err)
|
||||
rds_ib_conn_error(conn, "rdma_accept failed (%d)\n", err);
|
||||
if (rdma_accept(cm_id, &conn_param))
|
||||
rds_ib_conn_error(conn, "rdma_accept failed\n");
|
||||
|
||||
out:
|
||||
if (conn)
|
||||
|
|
|
|||
Loading…
Reference in a new issue