diff options
author | David S. Miller | 2012-11-16 18:42:43 +0100 |
---|---|---|
committer | David S. Miller | 2012-11-16 18:42:43 +0100 |
commit | 545b29019c8959c805abfe8194d47e989f1a6e5f (patch) | |
tree | 120f88abf0b4b2317072579c667fddfccb930fe5 /net/ipv6/netfilter/ip6table_nat.c | |
parent | ipv6: export IP6_RT_PRIO_* to userland (diff) | |
parent | netfilter: ipv6: only provide sk_bound_dev_if for link-local addr (diff) | |
download | kernel-qcow2-linux-545b29019c8959c805abfe8194d47e989f1a6e5f.tar.gz kernel-qcow2-linux-545b29019c8959c805abfe8194d47e989f1a6e5f.tar.xz kernel-qcow2-linux-545b29019c8959c805abfe8194d47e989f1a6e5f.zip |
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/ipv6/netfilter/ip6table_nat.c')
-rw-r--r-- | net/ipv6/netfilter/ip6table_nat.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/net/ipv6/netfilter/ip6table_nat.c b/net/ipv6/netfilter/ip6table_nat.c index d57dab17a182..fa84cf8ec6bc 100644 --- a/net/ipv6/netfilter/ip6table_nat.c +++ b/net/ipv6/netfilter/ip6table_nat.c @@ -277,9 +277,7 @@ static int __net_init ip6table_nat_net_init(struct net *net) return -ENOMEM; net->ipv6.ip6table_nat = ip6t_register_table(net, &nf_nat_ipv6_table, repl); kfree(repl); - if (IS_ERR(net->ipv6.ip6table_nat)) - return PTR_ERR(net->ipv6.ip6table_nat); - return 0; + return PTR_RET(net->ipv6.ip6table_nat); } static void __net_exit ip6table_nat_net_exit(struct net *net) |