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
79 [ODEBUG_STATE_NOTAVAILABLE] = "not available",79 [ODEBUG_STATE_NOTAVAILABLE] = "not available",
80};80};
81 81
82static int fill_pool(void)82static void fill_pool(void)
83{83{
84 gfp_t gfp = GFP_ATOMIC | __GFP_NORETRY | __GFP_NOWARN;84 gfp_t gfp = GFP_ATOMIC | __GFP_NORETRY | __GFP_NOWARN;
85 struct debug_obj *new;85 struct debug_obj *new;
86 unsigned long flags;86 unsigned long flags;
87 87
88 if (likely(obj_pool_free >= ODEBUG_POOL_MIN_LEVEL))88 if (likely(obj_pool_free >= ODEBUG_POOL_MIN_LEVEL))
89 return obj_pool_free;89 return;
90 90
91 if (unlikely(!obj_cache))91 if (unlikely(!obj_cache))
92 return obj_pool_free;92 return;
93 93
94 while (obj_pool_free < ODEBUG_POOL_MIN_LEVEL) {94 while (obj_pool_free < ODEBUG_POOL_MIN_LEVEL) {
95 95
@@ -102,7 +102,6 @@ static int fill_pool(void) · 6 unmodified lines
102 obj_pool_free++;102 obj_pool_free++;
103 raw_spin_unlock_irqrestore(&pool_lock, flags);103 raw_spin_unlock_irqrestore(&pool_lock, flags);
104 }104 }
105 return obj_pool_free;
106}105}
107 106
108/*107/*