Commit 01992152 authored by Juhee Kang's avatar Juhee Kang Committed by David S. Miller

mlxsw: spectrum: use netif_is_macsec() instead of open code

Open code which is dev->priv_flags & IFF_MACSEC has already defined as
netif_is_macsec(). So use netif_is_macsec() instead of open code.
This patch doesn't change logic.
Signed-off-by: default avatarJuhee Kang <claudiajkang@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent c60882a4
...@@ -5237,7 +5237,7 @@ static inline void netif_keep_dst(struct net_device *dev) ...@@ -5237,7 +5237,7 @@ static inline void netif_keep_dst(struct net_device *dev)
static inline bool netif_reduces_vlan_mtu(struct net_device *dev) static inline bool netif_reduces_vlan_mtu(struct net_device *dev)
{ {
/* TODO: reserve and use an additional IFF bit, if we get more users */ /* TODO: reserve and use an additional IFF bit, if we get more users */
return dev->priv_flags & IFF_MACSEC; return netif_is_macsec(dev);
} }
extern struct pernet_operations __net_initdata loopback_net_ops; extern struct pernet_operations __net_initdata loopback_net_ops;
......
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