Commit 0d722ec8 authored by Bruce Allan's avatar Bruce Allan Committed by Jeff Kirsher

fm10k: IS_ENABLED() is not appropriate for boolean kconfig option

Tri-states need 'if IS_ENABLED()', booleans should use 'ifdef'.
Signed-off-by: default avatarBruce Allan <bruce.w.allan@intel.com>
Tested-by: default avatarKrishneil Singh <Krishneil.k.singh@intel.com>
Signed-off-by: default avatarJeff Kirsher <jeffrey.t.kirsher@intel.com>
parent f632fed3
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
#include "fm10k.h" #include "fm10k.h"
#include <linux/vmalloc.h> #include <linux/vmalloc.h>
#if IS_ENABLED(CONFIG_FM10K_VXLAN) #ifdef CONFIG_FM10K_VXLAN
#include <net/vxlan.h> #include <net/vxlan.h>
#endif /* CONFIG_FM10K_VXLAN */ #endif /* CONFIG_FM10K_VXLAN */
...@@ -556,11 +556,11 @@ int fm10k_open(struct net_device *netdev) ...@@ -556,11 +556,11 @@ int fm10k_open(struct net_device *netdev)
if (err) if (err)
goto err_set_queues; goto err_set_queues;
#if IS_ENABLED(CONFIG_FM10K_VXLAN) #ifdef CONFIG_FM10K_VXLAN
/* update VXLAN port configuration */ /* update VXLAN port configuration */
vxlan_get_rx_port(netdev); vxlan_get_rx_port(netdev);
#endif #endif
fm10k_up(interface); fm10k_up(interface);
return 0; return 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment