diff options
author | 2013-04-25 10:37:24 +0200 | |
---|---|---|
committer | 2013-10-09 21:22:34 +0200 | |
commit | 9284a47e8bd7d19fc1230cc8d5982820d357c3ed (patch) | |
tree | 5c1be30134cd3bbd2537febd60ff93120e1454ea /net | |
parent | batman-adv: reorder packet types (diff) | |
download | linux-9284a47e8bd7d19fc1230cc8d5982820d357c3ed.tar.gz linux-9284a47e8bd7d19fc1230cc8d5982820d357c3ed.tar.bz2 linux-9284a47e8bd7d19fc1230cc8d5982820d357c3ed.zip |
batman-adv: remove packed from batadv_ogm_packet
As we decreased the struct size from 26 to 24 byte, we can remove
__packed as the compiler will not add any more padding.
Signed-off-by: Simon Wunderlich <siwu@hrz.tu-chemnitz.de>
Signed-off-by: Marek Lindner <lindner_marek@yahoo.de>
Signed-off-by: Antonio Quartulli <antonio@meshcoding.com>
Diffstat (limited to 'net')
-rw-r--r-- | net/batman-adv/packet.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/net/batman-adv/packet.h b/net/batman-adv/packet.h index f02dbb1892dd..4e5fe7d0dcbe 100644 --- a/net/batman-adv/packet.h +++ b/net/batman-adv/packet.h @@ -175,7 +175,10 @@ struct batadv_ogm_packet { uint8_t reserved; uint8_t tq; __be16 tvlv_len; -} __packed; + /* __packed is not needed as the struct size is divisible by 4, + * and the largest data type in this struct has a size of 4. + */ +}; #define BATADV_OGM_HLEN sizeof(struct batadv_ogm_packet) |