diff options
author | Nikolay Aleksandrov <nikolay@cumulusnetworks.com> | 2015-11-21 15:57:30 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-11-23 21:06:39 +0100 |
commit | af623236a9f3a20aa2f15f03cf9fe7bfd13b8889 (patch) | |
tree | 037aca051d5b26e89db88a59c113d2b892cbca7a /net/ipv4/ipmr.c | |
parent | net: ipmr: drop an instance of CONFIG_IP_MROUTE_MULTIPLE_TABLES (diff) | |
download | linux-af623236a9f3a20aa2f15f03cf9fe7bfd13b8889.tar.xz linux-af623236a9f3a20aa2f15f03cf9fe7bfd13b8889.zip |
net: ipmr: drop ip_mr_init() mrt_cachep null check as we'll panic if it fails
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>
Diffstat (limited to 'net/ipv4/ipmr.c')
-rw-r--r-- | net/ipv4/ipmr.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/net/ipv4/ipmr.c b/net/ipv4/ipmr.c index a006d96d6cd9..50aec313119d 100644 --- 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) |