diff options
author | Hal Rosenstock <halr@voltaire.com> | 2005-07-27 14:45:20 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-07-27 19:26:09 -0400 |
commit | c183a4c33528d17cde0dcb093ae4248d8cb8f649 (patch) | |
tree | 57d07087c9a99d6002529b956719853008a9acdd /drivers/infiniband/core | |
parent | 896e5518da74f9d20db8163526014fba16b1f2b4 (diff) |
[PATCH] IB: Update FMR functions
Change some functions to return void rather than an int since they are always
returning 0, thus making checking return values rather pointless.
Signed-off-by: Tom Duffy <tduffy@sun.com>
Signed-off-by: Libor Michalek <libor@topspin.com>
Signed-off-by: Hal Rosenstock <halr@voltaire.com>
Cc: Roland Dreier <rolandd@cisco.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/infiniband/core')
-rw-r--r-- | drivers/infiniband/core/fmr_pool.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/infiniband/core/fmr_pool.c b/drivers/infiniband/core/fmr_pool.c index 328feae2a5be..7763b31abba7 100644 --- a/drivers/infiniband/core/fmr_pool.c +++ b/drivers/infiniband/core/fmr_pool.c | |||
@@ -1,5 +1,6 @@ | |||
1 | /* | 1 | /* |
2 | * Copyright (c) 2004 Topspin Communications. All rights reserved. | 2 | * Copyright (c) 2004 Topspin Communications. All rights reserved. |
3 | * Copyright (c) 2005 Sun Microsystems, Inc. All rights reserved. | ||
3 | * | 4 | * |
4 | * This software is available to you under a choice of one of two | 5 | * This software is available to you under a choice of one of two |
5 | * licenses. You may choose to be licensed under the terms of the GNU | 6 | * licenses. You may choose to be licensed under the terms of the GNU |
@@ -29,7 +30,7 @@ | |||
29 | * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | 30 | * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE |
30 | * SOFTWARE. | 31 | * SOFTWARE. |
31 | * | 32 | * |
32 | * $Id: fmr_pool.c 1349 2004-12-16 21:09:43Z roland $ | 33 | * $Id: fmr_pool.c 2730 2005-06-28 16:43:03Z sean.hefty $ |
33 | */ | 34 | */ |
34 | 35 | ||
35 | #include <linux/errno.h> | 36 | #include <linux/errno.h> |
@@ -329,7 +330,7 @@ EXPORT_SYMBOL(ib_create_fmr_pool); | |||
329 | * | 330 | * |
330 | * Destroy an FMR pool and free all associated resources. | 331 | * Destroy an FMR pool and free all associated resources. |
331 | */ | 332 | */ |
332 | int ib_destroy_fmr_pool(struct ib_fmr_pool *pool) | 333 | void ib_destroy_fmr_pool(struct ib_fmr_pool *pool) |
333 | { | 334 | { |
334 | struct ib_pool_fmr *fmr; | 335 | struct ib_pool_fmr *fmr; |
335 | struct ib_pool_fmr *tmp; | 336 | struct ib_pool_fmr *tmp; |
@@ -352,8 +353,6 @@ int ib_destroy_fmr_pool(struct ib_fmr_pool *pool) | |||
352 | 353 | ||
353 | kfree(pool->cache_bucket); | 354 | kfree(pool->cache_bucket); |
354 | kfree(pool); | 355 | kfree(pool); |
355 | |||
356 | return 0; | ||
357 | } | 356 | } |
358 | EXPORT_SYMBOL(ib_destroy_fmr_pool); | 357 | EXPORT_SYMBOL(ib_destroy_fmr_pool); |
359 | 358 | ||