Commit 1fda107d44de1e8df2bdfd1d4a2c12a338b8d725
1 parent
923e9a1399
Exists in
smarc-l5.0.0_1.0.0-ga
and in
5 other branches
debugobjects: Remove unused return value from fill_pool()
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Showing 1 changed file with 3 additions and 4 deletions Side-by-side Diff
lib/debugobjects.c
... | ... | @@ -79,17 +79,17 @@ |
79 | 79 | [ODEBUG_STATE_NOTAVAILABLE] = "not available", |
80 | 80 | }; |
81 | 81 | |
82 | -static int fill_pool(void) | |
82 | +static void fill_pool(void) | |
83 | 83 | { |
84 | 84 | gfp_t gfp = GFP_ATOMIC | __GFP_NORETRY | __GFP_NOWARN; |
85 | 85 | struct debug_obj *new; |
86 | 86 | unsigned long flags; |
87 | 87 | |
88 | 88 | if (likely(obj_pool_free >= ODEBUG_POOL_MIN_LEVEL)) |
89 | - return obj_pool_free; | |
89 | + return; | |
90 | 90 | |
91 | 91 | if (unlikely(!obj_cache)) |
92 | - return obj_pool_free; | |
92 | + return; | |
93 | 93 | |
94 | 94 | while (obj_pool_free < ODEBUG_POOL_MIN_LEVEL) { |
95 | 95 | |
... | ... | @@ -102,7 +102,6 @@ |
102 | 102 | obj_pool_free++; |
103 | 103 | raw_spin_unlock_irqrestore(&pool_lock, flags); |
104 | 104 | } |
105 | - return obj_pool_free; | |
106 | 105 | } |
107 | 106 | |
108 | 107 | /* |