Skip to content

Commit 1fda107

Browse files
committed
debugobjects: Remove unused return value from fill_pool()
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
1 parent 923e9a1 commit 1fda107

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

‎lib/debugobjects.c‎

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -79,17 +79,17 @@ static const char *obj_states[ODEBUG_STATE_MAX] = {
7979
[ODEBUG_STATE_NOTAVAILABLE] = "not available",
8080
};
8181

82-
static int fill_pool(void)
82+
static void fill_pool(void)
8383
{
8484
gfp_t gfp = GFP_ATOMIC | __GFP_NORETRY | __GFP_NOWARN;
8585
struct debug_obj *new;
8686
unsigned long flags;
8787

8888
if (likely(obj_pool_free >= ODEBUG_POOL_MIN_LEVEL))
89-
return obj_pool_free;
89+
return;
9090

9191
if (unlikely(!obj_cache))
92-
return obj_pool_free;
92+
return;
9393

9494
while (obj_pool_free < ODEBUG_POOL_MIN_LEVEL) {
9595

@@ -102,7 +102,6 @@ static int fill_pool(void)
102102
obj_pool_free++;
103103
raw_spin_unlock_irqrestore(&pool_lock, flags);
104104
}
105-
return obj_pool_free;
106105
}
107106

108107
/*

0 commit comments

Comments
 (0)