diff options
author | Sven Eckelmann <sven@narfation.org> | 2012-07-08 18:33:51 +0200 |
---|---|---|
committer | Antonio Quartulli <ordex@autistici.org> | 2012-08-23 14:20:21 +0200 |
commit | c67893d17a6bbd16328a1ee38ab0cb460511014a (patch) | |
tree | 4bf7c241b31200f0dfb2c0c41b2852b47d42921f /net/batman-adv/bridge_loop_avoidance.c | |
parent | bbb1f90efba89b31fc5e329d5fcaf10aca99212b (diff) | |
download | op-kernel-dev-c67893d17a6bbd16328a1ee38ab0cb460511014a.zip op-kernel-dev-c67893d17a6bbd16328a1ee38ab0cb460511014a.tar.gz |
batman-adv: Reduce accumulated length of simple statements
Signed-off-by: Sven Eckelmann <sven@narfation.org>
Signed-off-by: Antonio Quartulli <ordex@autistici.org>
Diffstat (limited to 'net/batman-adv/bridge_loop_avoidance.c')
-rw-r--r-- | net/batman-adv/bridge_loop_avoidance.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/net/batman-adv/bridge_loop_avoidance.c b/net/batman-adv/bridge_loop_avoidance.c index 7a93b2a..0a9084a 100644 --- a/net/batman-adv/bridge_loop_avoidance.c +++ b/net/batman-adv/bridge_loop_avoidance.c @@ -1345,8 +1345,7 @@ int batadv_bla_is_backbone_gw(struct sk_buff *skb, if (!pskb_may_pull(skb, hdr_size + sizeof(struct vlan_ethhdr))) return 0; - vhdr = (struct vlan_ethhdr *)(((uint8_t *)skb->data) + - hdr_size); + vhdr = (struct vlan_ethhdr *)(skb->data + hdr_size); vid = ntohs(vhdr->h_vlan_TCI) & VLAN_VID_MASK; } |