From: Gustavo A. R. Silva Date: Thu, 18 Jan 2018 23:37:45 +0000 (-0600) Subject: bridge: return boolean instead of integer in br_multicast_is_router X-Git-Tag: v4.19~1702^2~88 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=03aaa9e2677ee25bb31fb9f54ea72b4dacbe0df8;p=platform%2Fkernel%2Flinux-rpi3.git 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 Reviewed-by: Stephen Hemminger Signed-off-by: David S. Miller --- diff --git a/net/bridge/br_private.h b/net/bridge/br_private.h index 80559fd..8e13a64 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,