summaryrefslogtreecommitdiffstats
path: root/mm/slab_common.c
diff options
context:
space:
mode:
authorVlastimil Babka <vbabka@suse.cz>2022-09-23 10:29:53 +0200
committerVlastimil Babka <vbabka@suse.cz>2022-09-23 10:29:53 +0200
commit0467ca385f406e1cdfee92f86b1a26c3bcf7cdb3 (patch)
treee71f6d350bf94b5f15dfd7c059c40988c6d1e247 /mm/slab_common.c
parentmm: slub: fix flush_cpu_slab()/__free_slab() invocations in task context. (diff)
parentmm/slub: Remove the unneeded result variable (diff)
downloadlinux-0467ca385f406e1cdfee92f86b1a26c3bcf7cdb3.tar.xz
linux-0467ca385f406e1cdfee92f86b1a26c3bcf7cdb3.zip
Merge branch 'slab/for-6.1/trivial' into slab/for-next
Trivial fixes and cleanups: - unneeded variable removals, by ye xingchen
Diffstat (limited to 'mm/slab_common.c')
-rw-r--r--mm/slab_common.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/mm/slab_common.c b/mm/slab_common.c
index ccc02573588f..2180d0612353 100644
--- a/mm/slab_common.c
+++ b/mm/slab_common.c
@@ -511,13 +511,9 @@ EXPORT_SYMBOL(kmem_cache_destroy);
*/
int kmem_cache_shrink(struct kmem_cache *cachep)
{
- int ret;
-
-
kasan_cache_shrink(cachep);
- ret = __kmem_cache_shrink(cachep);
- return ret;
+ return __kmem_cache_shrink(cachep);
}
EXPORT_SYMBOL(kmem_cache_shrink);