diff options
author | Sagi Grimberg <sagig@mellanox.com> | 2014-07-31 06:27:48 -0400 |
---|---|---|
committer | Roland Dreier <roland@purestorage.com> | 2014-08-01 18:10:04 -0400 |
commit | f1a8bf0983207bebebd13c0507cb341fbffc5ed7 (patch) | |
tree | aa45d9ccb7a57d2ca4ebd3d30502d6e27751cd0c | |
parent | 0a6907588a8b9bf1aa9ee84b809a1d49caea594a (diff) |
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>
-rw-r--r-- | drivers/infiniband/ulp/iser/iser_verbs.c | 7 |
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: | |||
491 | } | 491 | } |
492 | 492 | ||
493 | /** | 493 | /** |
494 | * releases the QP objects, returns 0 on success, | 494 | * releases the QP object |
495 | * -1 on failure | ||
496 | */ | 495 | */ |
497 | static int iser_free_ib_conn_res(struct iser_conn *ib_conn) | 496 | static void iser_free_ib_conn_res(struct iser_conn *ib_conn) |
498 | { | 497 | { |
499 | int cq_index; | 498 | int cq_index; |
500 | BUG_ON(ib_conn == NULL); | 499 | BUG_ON(ib_conn == NULL); |
@@ -513,8 +512,6 @@ static int iser_free_ib_conn_res(struct iser_conn *ib_conn) | |||
513 | } | 512 | } |
514 | 513 | ||
515 | ib_conn->qp = NULL; | 514 | ib_conn->qp = NULL; |
516 | |||
517 | return 0; | ||
518 | } | 515 | } |
519 | 516 | ||
520 | /** | 517 | /** |