kernel/net/ipv4/netfilter/ip_tables.c
.. .. @@ -1044,7 +1044,6 @@ 1044 1044 struct xt_counters *counters; 1045 1045 struct ipt_entry *iter; 1046 1046 1047 - ret = 0;1048 1047 counters = xt_counters_alloc(num_counters); 1049 1048 if (!counters) { 1050 1049 ret = -ENOMEM; .. .. @@ -1090,7 +1089,7 @@ 1090 1089 net_warn_ratelimited("iptables: counters copy to user failed while replacing table\n"); 1091 1090 } 1092 1091 vfree(counters); 1093 - return ret;1092 + return 0;1094 1093 1095 1094 put_module: 1096 1095 module_put(t->me);