slab, cleanup: remove unneeded return
PATCH RESEND 1/2 slab, cleanup: remove unneeded return
The procedure ends right after the if-statement, so remove ``return''. Also move the last common statement outside.
Signed-off-by Zhao Jin <[email protected]>
Acked-by David Rientjes <[email protected]>
--- mm/slab.c | 5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-)
mm/slab.c +2 -3
@@ -3678,13 +3678,12 @@ static inline void __cache_free(struct kmem_cache *cachep, void *objp,if (likely (ac->avail < ac->limit)) {STATS_INC_FREEHIT (cachep); - ac->entry[ac->avail++] = objp; -return ; }else {STATS_INC_FREEMISS (cachep);cache_flusharray (cachep, ac); - ac->entry[ac->avail++] = objp; } + + ac->entry[ac->avail++] = objp; }/**
Signature · 1 line
1.7.4.1
Quoted 2 lines · Zhao Jin
The procedure ends right after the if-statement, so remove ``return''. Also move the last common statement outside.