batman-adv: use eth_hdr() when it makes sense
authorAntonio Quartulli <ordex@autistici.org>
Mon, 8 Apr 2013 13:08:18 +0000 (15:08 +0200)
committerAntonio Quartulli <ordex@autistici.org>
Wed, 29 May 2013 00:44:54 +0000 (02:44 +0200)
commit7ed4be9523455a061e62236dc3caa9211cd7edda
tree476ba10f0a15e50ff9f5409f4a4f4ee0e1388a47
parent7db3fc291bb22bf43667b009dd0e701ed4eb7c96
batman-adv: use eth_hdr() when it makes sense

Instead of casting the result of skb_mac_header() to
"struct ethhdr *" every time, the eth_hdr inline function
can be use to beautify the code and improve its readability.

Signed-off-by: Antonio Quartulli <ordex@autistici.org>
Signed-off-by: Marek Lindner <lindner_marek@yahoo.de>
net/batman-adv/bat_iv_ogm.c
net/batman-adv/bridge_loop_avoidance.c
net/batman-adv/network-coding.c
net/batman-adv/routing.c
net/batman-adv/send.c
net/batman-adv/soft-interface.c