From 1fda107d44de1e8df2bdfd1d4a2c12a338b8d725 Mon Sep 17 00:00:00 2001 From: Thomas Gleixner Date: Wed, 11 Apr 2012 11:52:18 +0200 Subject: debugobjects: Remove unused return value from fill_pool() Signed-off-by: Thomas Gleixner --- lib/debugobjects.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'lib/debugobjects.c') diff --git a/lib/debugobjects.c b/lib/debugobjects.c index 0ab9ae8057f0..3e5cd7c04a55 100644 --- a/lib/debugobjects.c +++ b/lib/debugobjects.c @@ -79,17 +79,17 @@ static const char *obj_states[ODEBUG_STATE_MAX] = { [ODEBUG_STATE_NOTAVAILABLE] = "not available", }; -static int fill_pool(void) +static void fill_pool(void) { gfp_t gfp = GFP_ATOMIC | __GFP_NORETRY | __GFP_NOWARN; struct debug_obj *new; unsigned long flags; if (likely(obj_pool_free >= ODEBUG_POOL_MIN_LEVEL)) - return obj_pool_free; + return; if (unlikely(!obj_cache)) - return obj_pool_free; + return; while (obj_pool_free < ODEBUG_POOL_MIN_LEVEL) { @@ -102,7 +102,6 @@ static int fill_pool(void) obj_pool_free++; raw_spin_unlock_irqrestore(&pool_lock, flags); } - return obj_pool_free; } /* -- cgit v1.2.1