|
@@ -1789,7 +1789,7 @@ void dev_net_set(struct net_device *dev, struct net *net)
|
|
|
|
|
|
static inline bool netdev_uses_dsa(struct net_device *dev)
|
|
static inline bool netdev_uses_dsa(struct net_device *dev)
|
|
{
|
|
{
|
|
-#ifdef CONFIG_NET_DSA
|
|
|
|
|
|
+#if IS_ENABLED(CONFIG_NET_DSA)
|
|
if (dev->dsa_ptr != NULL)
|
|
if (dev->dsa_ptr != NULL)
|
|
return dsa_uses_tagged_protocol(dev->dsa_ptr);
|
|
return dsa_uses_tagged_protocol(dev->dsa_ptr);
|
|
#endif
|
|
#endif
|