diff options
author | Antonio Quartulli <ordex@autistici.org> | 2012-02-18 11:27:34 +0100 |
---|---|---|
committer | Antonio Quartulli <ordex@autistici.org> | 2012-04-18 09:54:01 +0200 |
commit | 0d125074ebc8c971e939f8c2c8f90a80fa09aeb4 (patch) | |
tree | fb31ee069ab0a2abc7681b999839fd81392110f7 /net/batman-adv/send.c | |
parent | batman-adv: mark existing ogm variables as batman iv (diff) | |
download | linux-0d125074ebc8c971e939f8c2c8f90a80fa09aeb4.tar.xz linux-0d125074ebc8c971e939f8c2c8f90a80fa09aeb4.zip |
batman-adv: use ETH_HLEN instead of sizeof(struct ethhdr)
Instead of using sizeof(struct ethhdr) it is strongly recommended to use the
kernel macro ETH_HLEN. This patch substitute each occurrence of the former
expressione with the latter one.
Signed-off-by: Antonio Quartulli <ordex@autistici.org>
Diffstat (limited to 'net/batman-adv/send.c')
-rw-r--r-- | net/batman-adv/send.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/batman-adv/send.c b/net/batman-adv/send.c index b5f078cacc09..7c66b6121fa6 100644 --- a/net/batman-adv/send.c +++ b/net/batman-adv/send.c @@ -51,7 +51,7 @@ int send_skb_packet(struct sk_buff *skb, struct hard_iface *hard_iface, } /* push to the ethernet header. */ - if (my_skb_head_push(skb, sizeof(*ethhdr)) < 0) + if (my_skb_head_push(skb, ETH_HLEN) < 0) goto send_skb_err; skb_reset_mac_header(skb); |