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>
Showing
- net/batman-adv/bat_iv_ogm.c 1 addition, 1 deletionnet/batman-adv/bat_iv_ogm.c
- net/batman-adv/bridge_loop_avoidance.c 4 additions, 4 deletionsnet/batman-adv/bridge_loop_avoidance.c
- net/batman-adv/network-coding.c 5 additions, 5 deletionsnet/batman-adv/network-coding.c
- net/batman-adv/routing.c 6 additions, 6 deletionsnet/batman-adv/routing.c
- net/batman-adv/send.c 1 addition, 1 deletionnet/batman-adv/send.c
- net/batman-adv/soft-interface.c 1 addition, 1 deletionnet/batman-adv/soft-interface.c
Loading
Please register or sign in to comment