bridge: remove unnecessary parentheses
Return is not a function, parentheses are not required. Signed-off-by: Tan Xiaojun <tanxiaojun@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
87e823b3d5
commit
a97bfc1d1f
@@ -30,9 +30,9 @@ static int deliver_clone(const struct net_bridge_port *prev,
|
||||
static inline int should_deliver(const struct net_bridge_port *p,
|
||||
const struct sk_buff *skb)
|
||||
{
|
||||
return (((p->flags & BR_HAIRPIN_MODE) || skb->dev != p->dev) &&
|
||||
return ((p->flags & BR_HAIRPIN_MODE) || skb->dev != p->dev) &&
|
||||
br_allowed_egress(p->br, nbp_get_vlan_info(p), skb) &&
|
||||
p->state == BR_STATE_FORWARDING);
|
||||
p->state == BR_STATE_FORWARDING;
|
||||
}
|
||||
|
||||
static inline unsigned int packet_length(const struct sk_buff *skb)
|
||||
|
Reference in New Issue
Block a user