projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
29c3f19
)
net: ipmr: drop ip_mr_init() mrt_cachep null check as we'll panic if it fails
author
Nikolay Aleksandrov
<nikolay@cumulusnetworks.com>
Sat, 21 Nov 2015 14:57:30 +0000
(15:57 +0100)
committer
David S. Miller
<davem@davemloft.net>
Mon, 23 Nov 2015 20:06:39 +0000
(15:06 -0500)
It's not necessary to check for null as SLAB_PANIC is used and we'll
panic if the alloc fails, so just drop it.
Signed-off-by: Nikolay Aleksandrov <nikolay@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/ipmr.c
patch
|
blob
|
blame
|
history
diff --git
a/net/ipv4/ipmr.c
b/net/ipv4/ipmr.c
index a006d96d6cd939929a0244df1fb0c1fc4cfc3698..50aec313119d2bce20a0568c33180496405550d1 100644
(file)
--- a/
net/ipv4/ipmr.c
+++ b/
net/ipv4/ipmr.c
@@
-2677,8
+2677,6
@@
int __init ip_mr_init(void)
sizeof(struct mfc_cache),
0, SLAB_HWCACHE_ALIGN | SLAB_PANIC,
NULL);
- if (!mrt_cachep)
- return -ENOMEM;
err = register_pernet_subsys(&ipmr_net_ops);
if (err)