Skip to content

Commit

Permalink
debugobjects: Remove unused return value from fill_pool()
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
  • Loading branch information
KAGA-KOKO committed Apr 11, 2012
1 parent 923e9a1 commit 1fda107
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions lib/debugobjects.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {

Expand All @@ -102,7 +102,6 @@ static int fill_pool(void)
obj_pool_free++;
raw_spin_unlock_irqrestore(&pool_lock, flags);
}
return obj_pool_free;
}

/*
Expand Down

0 comments on commit 1fda107

Please sign in to comment.