]> git.karo-electronics.de Git - linux-beck.git/commitdiff
debugobjects: Remove unused return value from fill_pool()
authorThomas Gleixner <tglx@linutronix.de>
Wed, 11 Apr 2012 09:52:18 +0000 (11:52 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Wed, 11 Apr 2012 09:56:17 +0000 (11:56 +0200)
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
lib/debugobjects.c

index 0ab9ae8057f00e8545deba43ff31fab7873a619c..3e5cd7c04a55229c546b599864ccf7b9b62734a0 100644 (file)
@@ -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) {
 
@@ -102,7 +102,6 @@ static int fill_pool(void)
                obj_pool_free++;
                raw_spin_unlock_irqrestore(&pool_lock, flags);
        }
-       return obj_pool_free;
 }
 
 /*