summaryrefslogtreecommitdiff
path: root/drivers/infiniband
diff options
context:
space:
mode:
authorSagi Grimberg <sagig@mellanox.com>2014-07-31 14:27:48 +0400
committerRoland Dreier <roland@purestorage.com>2014-08-02 02:10:04 +0400
commitf1a8bf0983207bebebd13c0507cb341fbffc5ed7 (patch)
treeaa45d9ccb7a57d2ca4ebd3d30502d6e27751cd0c /drivers/infiniband
parent0a6907588a8b9bf1aa9ee84b809a1d49caea594a (diff)
downloadlinux-f1a8bf0983207bebebd13c0507cb341fbffc5ed7.tar.xz
IB/iser: Remove redundant return code in iser_free_ib_conn_res()
Make it void. Signed-off-by: Sagi Grimberg <sagig@mellanox.com> Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com> Signed-off-by: Roland Dreier <roland@purestorage.com>
Diffstat (limited to 'drivers/infiniband')
-rw-r--r--drivers/infiniband/ulp/iser/iser_verbs.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/drivers/infiniband/ulp/iser/iser_verbs.c b/drivers/infiniband/ulp/iser/iser_verbs.c
index fffb4ac4c6ac..a5372c6cf9c6 100644
--- a/drivers/infiniband/ulp/iser/iser_verbs.c
+++ b/drivers/infiniband/ulp/iser/iser_verbs.c
@@ -491,10 +491,9 @@ out_err:
}
/**
- * releases the QP objects, returns 0 on success,
- * -1 on failure
+ * releases the QP object
*/
-static int iser_free_ib_conn_res(struct iser_conn *ib_conn)
+static void iser_free_ib_conn_res(struct iser_conn *ib_conn)
{
int cq_index;
BUG_ON(ib_conn == NULL);
@@ -513,8 +512,6 @@ static int iser_free_ib_conn_res(struct iser_conn *ib_conn)
}
ib_conn->qp = NULL;
-
- return 0;
}
/**