]> granicus.if.org Git - ipset/commitdiff
netfilter: Remove unnecessary OOM logging messages
authorJoe Perches <joe@perches.com>
Mon, 29 Aug 2011 21:17:25 +0000 (14:17 -0700)
committerJozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Wed, 31 Aug 2011 10:38:16 +0000 (12:38 +0200)
Removing unnecessary messages saves code and text.

Site specific OOM messages are duplications of a generic MM
out of memory message and aren't really useful, so just
delete them.

Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Jozsef Kadlecsik <kadlec@blackhole.kfki.hu>
kernel/net/netfilter/ipset/ip_set_core.c

index c3eabfdde595ecb6576c282d5c2c0a1677909de4..0d2859d6eacbddfb72fa0b948024263bbb6a514b 100644 (file)
@@ -1722,10 +1722,8 @@ ip_set_init(void)
 
        ip_set_list = kzalloc(sizeof(struct ip_set *) * ip_set_max,
                              GFP_KERNEL);
-       if (!ip_set_list) {
-               pr_err("ip_set: Unable to create ip_set_list\n");
+       if (!ip_set_list)
                return -ENOMEM;
-       }
 
        ret = nfnetlink_subsys_register(&ip_set_netlink_subsys);
        if (ret != 0) {