diff options
author | Jason Yan <yanaijie@huawei.com> | 2020-05-06 09:16:16 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-05-06 23:57:30 +0300 |
commit | 8741e18419bf4b9e3b02c0ed01ea13f1aa497fa7 (patch) | |
tree | ae9f376633e534e1164f7db384db9a481f979680 /net/bridge/br_private.h | |
parent | cadb5c4e394da0fc13e4d46ad7c1445d60dc175f (diff) | |
download | linux-8741e18419bf4b9e3b02c0ed01ea13f1aa497fa7.tar.xz |
net: bridge: return false in br_mrp_enabled()
Fix the following coccicheck warning:
net/bridge/br_private.h:1334:8-9: WARNING: return of 0/1 in function
'br_mrp_enabled' with return type bool
Fixes: 6536993371fab ("bridge: mrp: Integrate MRP into the bridge")
Signed-off-by: Jason Yan <yanaijie@huawei.com>
Acked-by: Nikolay Aleksandrov <nikolay@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/bridge/br_private.h')
-rw-r--r-- | net/bridge/br_private.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/bridge/br_private.h b/net/bridge/br_private.h index c35647cb138a..78d3a951180d 100644 --- a/net/bridge/br_private.h +++ b/net/bridge/br_private.h @@ -1331,7 +1331,7 @@ static inline int br_mrp_process(struct net_bridge_port *p, struct sk_buff *skb) static inline bool br_mrp_enabled(struct net_bridge *br) { - return 0; + return false; } static inline void br_mrp_port_del(struct net_bridge *br, |