projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
063daa8
)
x86/mm: Remove redundant check for kmem_cache_create()
author
Chengguang Xu
<cgxu519@gmx.com>
Tue, 12 Jun 2018 11:48:52 +0000
(19:48 +0800)
committer
Thomas Gleixner
<tglx@linutronix.de>
Thu, 2 Aug 2018 12:27:35 +0000
(14:27 +0200)
The flag 'SLAB_PANIC' implies panic on failure, So there is no need to
check the returned pointer for NULL.
Signed-off-by: Chengguang Xu <cgxu519@gmx.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: hpa@zytor.com
Link:
https://lkml.kernel.org/r/1528804132-154948-1-git-send-email-cgxu519@gmx.com
arch/x86/mm/pgtable.c
patch
|
blob
|
history
diff --git
a/arch/x86/mm/pgtable.c
b/arch/x86/mm/pgtable.c
index e3deefb891dac90ac9d1c0f54d432efd3456c8aa..0f1683fcb196d952b530b649e22f09c9582d2496 100644
(file)
--- a/
arch/x86/mm/pgtable.c
+++ b/
arch/x86/mm/pgtable.c
@@
-329,9
+329,6
@@
static int __init pgd_cache_init(void)
*/
pgd_cache = kmem_cache_create("pgd_cache", PGD_SIZE, PGD_ALIGN,
SLAB_PANIC, NULL);
- if (!pgd_cache)
- return -ENOMEM;
-
return 0;
}
core_initcall(pgd_cache_init);