diff options
author | Antonio Quartulli <ordex@autistici.org> | 2012-02-18 05:27:34 -0500 |
---|---|---|
committer | Antonio Quartulli <ordex@autistici.org> | 2012-04-18 03:54:01 -0400 |
commit | 0d125074ebc8c971e939f8c2c8f90a80fa09aeb4 (patch) | |
tree | fb31ee069ab0a2abc7681b999839fd81392110f7 /net/batman-adv/soft-interface.c | |
parent | 1eeb479fda2405269b3a85c86ba0eca41fcc4ea0 (diff) |
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/soft-interface.c')
-rw-r--r-- | net/batman-adv/soft-interface.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/batman-adv/soft-interface.c b/net/batman-adv/soft-interface.c index efe0fbaadcd6..6e2530b02043 100644 --- a/net/batman-adv/soft-interface.c +++ b/net/batman-adv/soft-interface.c | |||
@@ -292,7 +292,7 @@ void interface_rx(struct net_device *soft_iface, | |||
292 | /* skb->ip_summed = CHECKSUM_UNNECESSARY;*/ | 292 | /* skb->ip_summed = CHECKSUM_UNNECESSARY;*/ |
293 | 293 | ||
294 | bat_priv->stats.rx_packets++; | 294 | bat_priv->stats.rx_packets++; |
295 | bat_priv->stats.rx_bytes += skb->len + sizeof(struct ethhdr); | 295 | bat_priv->stats.rx_bytes += skb->len + ETH_HLEN; |
296 | 296 | ||
297 | soft_iface->last_rx = jiffies; | 297 | soft_iface->last_rx = jiffies; |
298 | 298 | ||