Skip to content

Commit

Permalink
bridge: return boolean instead of integer in br_multicast_is_router
Browse files Browse the repository at this point in the history
Return statements in functions returning bool should use
true/false instead of 1/0.

This issue was detected with the help of Coccinelle.

Fixes: 85b3526 ("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>
  • Loading branch information
Gustavo A. R. Silva authored and David S. Miller committed Jan 22, 2018
1 parent 8cad443 commit 03aaa9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/bridge/br_private.h
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 03aaa9e

Please sign in to comment.