]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
batman-adv: remove packed from batadv_ogm_packet
authorSimon Wunderlich <simon.wunderlich@s2003.tu-chemnitz.de>
Thu, 25 Apr 2013 08:37:24 +0000 (10:37 +0200)
committerAntonio Quartulli <antonio@meshcoding.com>
Wed, 9 Oct 2013 19:22:34 +0000 (21:22 +0200)
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>
net/batman-adv/packet.h

index f02dbb1892dd4ee5f2d7c1d647c5784e53120602..4e5fe7d0dcbe2054cfe536e53eb68f292a250741 100644 (file)
@@ -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)