diff options
author | Gustavo A. R. Silva <garsilva@embeddedor.com> | 2018-01-18 17:37:45 -0600 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-01-22 16:13:20 -0500 |
commit | 03aaa9e2677ee25bb31fb9f54ea72b4dacbe0df8 (patch) | |
tree | 06f7050d40319c0e86d61e70cd99a8980bc6aa49 /net/bridge | |
parent | 8cad443eacf661796a740903a75cb8944c675b4e (diff) | |
download | linux-03aaa9e2677ee25bb31fb9f54ea72b4dacbe0df8.tar.bz2 |
bridge: return boolean instead of integer in br_multicast_is_router
Return statements in functions returning bool should use
true/false instead of 1/0.
This issue was detected with the help of Coccinelle.
Fixes: 85b352693264 ("bridge: Fix build error when IGMP_SNOOPING is not enabled")
Signed-off-by: Gustavo A. R. Silva <garsilva@embeddedor.com>
Reviewed-by: Stephen Hemminger <stephen@networkplumber.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/bridge')
-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 80559fd11b7e..8e13a64d8c99 100644 --- a/net/bridge/br_private.h +++ b/net/bridge/br_private.h @@ -760,7 +760,7 @@ static inline void br_multicast_flood(struct net_bridge_mdb_entry *mdst, static inline bool br_multicast_is_router(struct net_bridge *br) { - return 0; + return false; } static inline bool br_multicast_querier_exists(struct net_bridge *br, |