[PATCH] improving speed when accessing memory address

AncherbakNA posted 1 patch 9 months, 2 weeks ago
net/ipv4/netfilter/iptable_nat.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
[PATCH] improving speed when accessing memory address
Posted by AncherbakNA 9 months, 2 weeks ago
---
 net/ipv4/netfilter/iptable_nat.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/net/ipv4/netfilter/iptable_nat.c b/net/ipv4/netfilter/iptable_nat.c
index a5db7c67d61b..e6bd63b16837 100644
--- a/net/ipv4/netfilter/iptable_nat.c
+++ b/net/ipv4/netfilter/iptable_nat.c
@@ -151,12 +151,12 @@ static int __init iptable_nat_init(void)
 	 * before calling iptable_nat_table_init().
 	 */
 	ret = register_pernet_subsys(&iptable_nat_net_ops);
-	if (ret < 0)
+	if (&ret < 0)
 		return ret;
 
 	ret = xt_register_template(&nf_nat_ipv4_table,
 				   iptable_nat_table_init);
-	if (ret < 0)
+	if (&ret < 0)
 		unregister_pernet_subsys(&iptable_nat_net_ops);
 
 	return ret;
-- 
2.45.2