Commit a97bfc1d authored by tanxiaojun's avatar tanxiaojun Committed by David S. Miller

bridge: remove unnecessary parentheses

Return is not a function, parentheses are not required.
Signed-off-by: default avatarTan Xiaojun <tanxiaojun@huawei.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 87e823b3
...@@ -30,9 +30,9 @@ static int deliver_clone(const struct net_bridge_port *prev, ...@@ -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, static inline int should_deliver(const struct net_bridge_port *p,
const struct sk_buff *skb) 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) && 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) static inline unsigned int packet_length(const struct sk_buff *skb)
......
...@@ -118,7 +118,7 @@ ebt_dev_check(const char *entry, const struct net_device *device) ...@@ -118,7 +118,7 @@ ebt_dev_check(const char *entry, const struct net_device *device)
/* 1 is the wildcard token */ /* 1 is the wildcard token */
while (entry[i] != '\0' && entry[i] != 1 && entry[i] == devname[i]) while (entry[i] != '\0' && entry[i] != 1 && entry[i] == devname[i])
i++; i++;
return (devname[i] != entry[i] && entry[i] != 1); return devname[i] != entry[i] && entry[i] != 1;
} }
#define FWINV2(bool,invflg) ((bool) ^ !!(e->invflags & invflg)) #define FWINV2(bool,invflg) ((bool) ^ !!(e->invflags & invflg))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment