From: Nikolay Aleksandrov Date: Sat, 21 Nov 2015 14:57:30 +0000 (+0100) Subject: net: ipmr: drop ip_mr_init() mrt_cachep null check as we'll panic if it fails X-Git-Tag: v4.14-rc1~3609^2~597^2~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=af623236a9f3a20aa2f15f03cf9fe7bfd13b8889;p=platform%2Fkernel%2Flinux-rpi.git 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 Signed-off-by: David S. Miller --- diff --git a/net/ipv4/ipmr.c b/net/ipv4/ipmr.c index a006d96..50aec31 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)