History

debugobjects: Remove unused return value from fill_pool()

Thomas Gleixner committed 14 years ago

Commit 1fda1071 parent 923e9a11 file · +3 −4Browse files

Showing the changes to lib/debugobjects.c (1 of 1 file). Show all

Unified · Split

lib/debugobjects.c+3−4
@@ -79,17 +79,17 @@ static const char *obj_states[ODEBUG_STATE_MAX] = { · 78 unmodified lines
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) · 6 unmodified lines
102102 obj_pool_free++;
103103 raw_spin_unlock_irqrestore(&pool_lock, flags);
104104 }
105− return obj_pool_free;
106105 }
107106
108107 /*