[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>
This commit is contained in:
Hal Rosenstock 2005-07-27 11:45:20 -07:00 committed by Linus Torvalds
parent 896e5518da
commit c183a4c335
2 changed files with 6 additions and 6 deletions

View File

@ -1,5 +1,6 @@
/* /*
* Copyright (c) 2004 Topspin Communications. All rights reserved. * Copyright (c) 2004 Topspin Communications. All rights reserved.
* Copyright (c) 2005 Sun Microsystems, Inc. All rights reserved.
* *
* This software is available to you under a choice of one of two * This software is available to you under a choice of one of two
* licenses. You may choose to be licensed under the terms of the GNU * licenses. You may choose to be licensed under the terms of the GNU
@ -29,7 +30,7 @@
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE. * SOFTWARE.
* *
* $Id: fmr_pool.c 1349 2004-12-16 21:09:43Z roland $ * $Id: fmr_pool.c 2730 2005-06-28 16:43:03Z sean.hefty $
*/ */
#include <linux/errno.h> #include <linux/errno.h>
@ -329,7 +330,7 @@ EXPORT_SYMBOL(ib_create_fmr_pool);
* *
* Destroy an FMR pool and free all associated resources. * Destroy an FMR pool and free all associated resources.
*/ */
int ib_destroy_fmr_pool(struct ib_fmr_pool *pool) void ib_destroy_fmr_pool(struct ib_fmr_pool *pool)
{ {
struct ib_pool_fmr *fmr; struct ib_pool_fmr *fmr;
struct ib_pool_fmr *tmp; struct ib_pool_fmr *tmp;
@ -352,8 +353,6 @@ int ib_destroy_fmr_pool(struct ib_fmr_pool *pool)
kfree(pool->cache_bucket); kfree(pool->cache_bucket);
kfree(pool); kfree(pool);
return 0;
} }
EXPORT_SYMBOL(ib_destroy_fmr_pool); EXPORT_SYMBOL(ib_destroy_fmr_pool);

View File

@ -1,5 +1,6 @@
/* /*
* Copyright (c) 2004 Topspin Corporation. All rights reserved. * Copyright (c) 2004 Topspin Corporation. All rights reserved.
* Copyright (c) 2005 Sun Microsystems, Inc. All rights reserved.
* *
* This software is available to you under a choice of one of two * This software is available to you under a choice of one of two
* licenses. You may choose to be licensed under the terms of the GNU * licenses. You may choose to be licensed under the terms of the GNU
@ -29,7 +30,7 @@
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE. * SOFTWARE.
* *
* $Id: ib_fmr_pool.h 1349 2004-12-16 21:09:43Z roland $ * $Id: ib_fmr_pool.h 2730 2005-06-28 16:43:03Z sean.hefty $
*/ */
#if !defined(IB_FMR_POOL_H) #if !defined(IB_FMR_POOL_H)
@ -78,7 +79,7 @@ struct ib_pool_fmr {
struct ib_fmr_pool *ib_create_fmr_pool(struct ib_pd *pd, struct ib_fmr_pool *ib_create_fmr_pool(struct ib_pd *pd,
struct ib_fmr_pool_param *params); struct ib_fmr_pool_param *params);
int ib_destroy_fmr_pool(struct ib_fmr_pool *pool); void ib_destroy_fmr_pool(struct ib_fmr_pool *pool);
int ib_flush_fmr_pool(struct ib_fmr_pool *pool); int ib_flush_fmr_pool(struct ib_fmr_pool *pool);