summaryrefslogtreecommitdiffstats
path: root/net/ipv4
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2012-11-16 12:42:43 -0500
committerDavid S. Miller <davem@davemloft.net>2012-11-16 12:42:43 -0500
commit545b29019c8959c805abfe8194d47e989f1a6e5f (patch)
tree120f88abf0b4b2317072579c667fddfccb930fe5 /net/ipv4
parent130cd273d4a46a3011b1cc739f5d2af78779d666 (diff)
parentd3976a53ce1f4763cb910d047e8763e4c696e5f7 (diff)
downloadblackbird-op-linux-545b29019c8959c805abfe8194d47e989f1a6e5f.tar.gz
blackbird-op-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/ipv4')
-rw-r--r--net/ipv4/netfilter/iptable_nat.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/net/ipv4/netfilter/iptable_nat.c b/net/ipv4/netfilter/iptable_nat.c
index a82047282dbb..ac635a7b4416 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)
OpenPOWER on IntegriCloud