Skip to content

Commit

Permalink
debugobjects: Fill_pool() returns void now
Browse files Browse the repository at this point in the history
There was a return missed in 1fda107 "debugobjects: Remove unused
return value from fill_pool()".  It makes gcc complain:

	lib/debugobjects.c: In function ‘fill_pool’:
	lib/debugobjects.c:98:4: warning: ‘return’ with a value, in
		function returning void [enabled by default]

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Link: http://lkml.kernel.org/r/20120418112810.GA2669@elgon.mountain
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
  • Loading branch information
Dan Carpenter authored and KAGA-KOKO committed Apr 18, 2012
1 parent 765a5e0 commit 3340808
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/debugobjects.c
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ static void fill_pool(void)

new = kmem_cache_zalloc(obj_cache, gfp);
if (!new)
return obj_pool_free;
return;

raw_spin_lock_irqsave(&pool_lock, flags);
hlist_add_head(&new->node, &obj_pool);
Expand Down

0 comments on commit 3340808

Please sign in to comment.