diff options
author | Kyungrok Chung <acadx0@gmail.com> | 2021-10-16 14:21:36 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-10-16 17:02:56 +0300 |
commit | 254ec036db1123b10e23e1412c191a3cf70dce71 (patch) | |
tree | e86be44703da741c3d4ebaaf2d72bc710d8a637f /net/bridge/br_ioctl.c | |
parent | 4e6e167bc04908c34d11f60cfbf3715eca184536 (diff) | |
download | linux-254ec036db1123b10e23e1412c191a3cf70dce71.tar.xz |
net: make use of helper netif_is_bridge_master()
Make use of netdev helper functions to improve code readability.
Replace 'dev->priv_flags & IFF_EBRIDGE' with netif_is_bridge_master(dev).
Signed-off-by: Kyungrok Chung <acadx0@gmail.com>
Reviewed-by: Nikolay Aleksandrov <nikolay@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/bridge/br_ioctl.c')
-rw-r--r-- | net/bridge/br_ioctl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/bridge/br_ioctl.c b/net/bridge/br_ioctl.c index 49c268871fc1..db4ab2c2ce18 100644 --- a/net/bridge/br_ioctl.c +++ b/net/bridge/br_ioctl.c @@ -26,7 +26,7 @@ static int get_bridge_ifindices(struct net *net, int *indices, int num) for_each_netdev_rcu(net, dev) { if (i >= num) break; - if (dev->priv_flags & IFF_EBRIDGE) + if (netif_is_bridge_master(dev)) indices[i++] = dev->ifindex; } rcu_read_unlock(); |