summaryrefslogtreecommitdiffstats
path: root/net/bridge/br_if.c
diff options
context:
space:
mode:
authorJulian Wiedmann <jwi@linux.ibm.com>2019-03-29 14:38:19 +0100
committerDavid S. Miller <davem@davemloft.net>2019-03-29 13:48:40 -0700
commit35f861e3c58e128f0ecb5669c43159285ea5254a (patch)
tree2fda4541bfa1905a3ecd340aebf042fe57c8a8fa /net/bridge/br_if.c
parentacb10eac5100ba905ac4d54d698348210666b27a (diff)
downloadtalos-op-linux-35f861e3c58e128f0ecb5669c43159285ea5254a.tar.gz
talos-op-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.c2
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);
OpenPOWER on IntegriCloud