summaryrefslogtreecommitdiffstats
path: root/net/bridge/br_forward.c
diff options
context:
space:
mode:
authortanxiaojun <tanxiaojun@huawei.com>2013-12-19 13:28:11 +0800
committerDavid S. Miller <davem@davemloft.net>2013-12-19 19:27:26 -0500
commita97bfc1d1f2b4496d01fda34fc546451f1c02bf5 (patch)
treeb631d1e0ca714bd7e39dbf005b85e183c73d024d /net/bridge/br_forward.c
parent87e823b3d5c99a17b4a5cfd6a70cd002992e30dd (diff)
downloadop-kernel-dev-a97bfc1d1f2b4496d01fda34fc546451f1c02bf5.zip
op-kernel-dev-a97bfc1d1f2b4496d01fda34fc546451f1c02bf5.tar.gz
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>
Diffstat (limited to 'net/bridge/br_forward.c')
-rw-r--r--net/bridge/br_forward.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/bridge/br_forward.c b/net/bridge/br_forward.c
index 96866aa..d3409e6 100644
--- a/net/bridge/br_forward.c
+++ b/net/bridge/br_forward.c
@@ -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)
OpenPOWER on IntegriCloud