mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -04:00
[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 <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
1a1d92c10d
commit
133d205a18
3 changed files with 5 additions and 8 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue