Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -20,7 +20,7 @@

#include "fm10k.h"
#include <linux/vmalloc.h>
#if IS_ENABLED(CONFIG_FM10K_VXLAN)
#ifdef CONFIG_FM10K_VXLAN
#include <net/vxlan.h>
#endif /* CONFIG_FM10K_VXLAN */

@@ -556,11 +556,11 @@ int fm10k_open(struct net_device *netdev)
	if (err)
		goto err_set_queues;

#if IS_ENABLED(CONFIG_FM10K_VXLAN)
#ifdef CONFIG_FM10K_VXLAN
	/* update VXLAN port configuration */
	vxlan_get_rx_port(netdev);

#endif

	fm10k_up(interface);

	return 0;