diff options
author | Alexey Dobriyan <adobriyan@gmail.com> | 2006-09-27 01:49:41 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-09-27 08:26:11 -0700 |
commit | 133d205a18b7a4d8cb52959c5310f6664277cf61 (patch) | |
tree | be3056dedc3190d06647a07425e8fcdcce5da868 /mm/slob.c | |
parent | 1a1d92c10dd24bbdc28b3d6e2d03ec199dd3a65b (diff) | |
download | linux-exynos-133d205a18b7a4d8cb52959c5310f6664277cf61.tar.gz linux-exynos-133d205a18b7a4d8cb52959c5310f6664277cf61.tar.bz2 linux-exynos-133d205a18b7a4d8cb52959c5310f6664277cf61.zip |
[PATCH] Make kmem_cache_destroy() return void
un-, de-, -free, -destroy, -exit, etc functions should in general return
void. Also,
There is very little, say, filesystem driver code can do upon failed
kmem_cache_destroy(). If it will be decided to BUG in this case, BUG
should be put in generic code, instead.
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'mm/slob.c')
-rw-r--r-- | mm/slob.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/mm/slob.c b/mm/slob.c index 20188627347c..542394184a58 100644 --- a/mm/slob.c +++ b/mm/slob.c @@ -270,10 +270,9 @@ struct kmem_cache *kmem_cache_create(const char *name, size_t size, } EXPORT_SYMBOL(kmem_cache_create); -int kmem_cache_destroy(struct kmem_cache *c) +void kmem_cache_destroy(struct kmem_cache *c) { slob_free(c, sizeof(struct kmem_cache)); - return 0; } EXPORT_SYMBOL(kmem_cache_destroy); |