diff options
author | Akinobu Mita <akinobu.mita@gmail.com> | 2007-05-08 03:23:13 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-05-08 14:14:57 -0400 |
commit | 0e6b9c98be1b517bf99a21d8a7036a8a21e47dd1 (patch) | |
tree | d38264506008361717a737581c26f7d3de28284b /arch/frv | |
parent | 72280ede316911fd5a82ef78d12a6705b1007d36 (diff) |
use SLAB_PANIC flag cleanup
Use SLAB_PANIC and delete duplicated panic().
Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
Cc: Ian Molton <spyro@f2s.com>
Cc: David Howells <dhowells@redhat.com>
Cc: Andi Kleen <ak@suse.de>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Paul Mundt <lethal@linux-sh.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/frv')
-rw-r--r-- | arch/frv/mm/pgalloc.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/arch/frv/mm/pgalloc.c b/arch/frv/mm/pgalloc.c index 19b13be114a2..598a26ab8ad8 100644 --- a/arch/frv/mm/pgalloc.c +++ b/arch/frv/mm/pgalloc.c | |||
@@ -151,9 +151,7 @@ void __init pgtable_cache_init(void) | |||
151 | pgd_cache = kmem_cache_create("pgd", | 151 | pgd_cache = kmem_cache_create("pgd", |
152 | PTRS_PER_PGD * sizeof(pgd_t), | 152 | PTRS_PER_PGD * sizeof(pgd_t), |
153 | PTRS_PER_PGD * sizeof(pgd_t), | 153 | PTRS_PER_PGD * sizeof(pgd_t), |
154 | 0, | 154 | SLAB_PANIC, |
155 | pgd_ctor, | 155 | pgd_ctor, |
156 | pgd_dtor); | 156 | pgd_dtor); |
157 | if (!pgd_cache) | ||
158 | panic("pgtable_cache_init(): Cannot create pgd cache"); | ||
159 | } | 157 | } |