Merge tag 'media/v5.2-1' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab...
[linux-2.6-block.git] / net / openvswitch / conntrack.c
index 333ec5f298fe5fe80122dd59460c0a9c55758dfc..4c597a0bb1683be317a29e87756ddef46f17d27e 100644 (file)
@@ -1322,7 +1322,7 @@ static int ovs_ct_add_helper(struct ovs_conntrack_info *info, const char *name,
                return -ENOMEM;
        }
 
-#ifdef CONFIG_NF_NAT_NEEDED
+#if IS_ENABLED(CONFIG_NF_NAT)
        if (info->nat) {
                ret = nf_nat_helper_try_module_get(name, info->family,
                                                   key->ip.proto);
@@ -1811,7 +1811,7 @@ void ovs_ct_free_action(const struct nlattr *a)
 static void __ovs_ct_free_action(struct ovs_conntrack_info *ct_info)
 {
        if (ct_info->helper) {
-#ifdef CONFIG_NF_NAT_NEEDED
+#if IS_ENABLED(CONFIG_NF_NAT)
                if (ct_info->nat)
                        nf_nat_helper_put(ct_info->helper);
 #endif