diff options
author | Julian Wiedmann <jwi@linux.ibm.com> | 2019-03-29 14:38:19 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-03-29 21:48:40 +0100 |
commit | 35f861e3c58e128f0ecb5669c43159285ea5254a (patch) | |
tree | 2fda4541bfa1905a3ecd340aebf042fe57c8a8fa /net/bridge/br_if.c | |
parent | team: use netif_is_team_port() (diff) | |
download | linux-35f861e3c58e128f0ecb5669c43159285ea5254a.tar.xz linux-35f861e3c58e128f0ecb5669c43159285ea5254a.zip |
net: bridge: use netif_is_bridge_port()
Replace the br_port_exists() macro with its twin from netdevice.h
CC: Roopa Prabhu <roopa@cumulusnetworks.com>
CC: Nikolay Aleksandrov <nikolay@cumulusnetworks.com>
Signed-off-by: Julian Wiedmann <jwi@linux.ibm.com>
Acked-by: Roopa Prabhu <roopa@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/bridge/br_if.c')
-rw-r--r-- | net/bridge/br_if.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/bridge/br_if.c b/net/bridge/br_if.c index 41f0a696a65f..4a9aaa3fac8f 100644 --- a/net/bridge/br_if.c +++ b/net/bridge/br_if.c @@ -179,7 +179,7 @@ int nbp_backup_change(struct net_bridge_port *p, ASSERT_RTNL(); if (backup_dev) { - if (!br_port_exists(backup_dev)) + if (!netif_is_bridge_port(backup_dev)) return -ENOENT; backup_p = br_port_get_rtnl(backup_dev); |