diff options
author | David S. Miller <davem@davemloft.net> | 2012-11-16 12:42:43 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-11-16 12:42:43 -0500 |
commit | 545b29019c8959c805abfe8194d47e989f1a6e5f (patch) | |
tree | 120f88abf0b4b2317072579c667fddfccb930fe5 /net/ipv4 | |
parent | 130cd273d4a46a3011b1cc739f5d2af78779d666 (diff) | |
parent | d3976a53ce1f4763cb910d047e8763e4c696e5f7 (diff) |
Merge branch 'master' of git://1984.lsi.us.es/nf-next
Conflicts:
net/ipv6/netfilter/nf_conntrack_l3proto_ipv6.c
Minor conflict due to some IS_ENABLED conversions done
in net-next.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4')
-rw-r--r-- | net/ipv4/netfilter/iptable_nat.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/net/ipv4/netfilter/iptable_nat.c b/net/ipv4/netfilter/iptable_nat.c index a82047282db..ac635a7b441 100644 --- a/net/ipv4/netfilter/iptable_nat.c +++ b/net/ipv4/netfilter/iptable_nat.c @@ -276,9 +276,7 @@ static int __net_init iptable_nat_net_init(struct net *net) return -ENOMEM; net->ipv4.nat_table = ipt_register_table(net, &nf_nat_ipv4_table, repl); kfree(repl); - if (IS_ERR(net->ipv4.nat_table)) - return PTR_ERR(net->ipv4.nat_table); - return 0; + return PTR_RET(net->ipv4.nat_table); } static void __net_exit iptable_nat_net_exit(struct net *net) |