Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9284a47e authored by Simon Wunderlich's avatar Simon Wunderlich Committed by Antonio Quartulli
Browse files

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: default avatarSimon Wunderlich <siwu@hrz.tu-chemnitz.de>
Signed-off-by: default avatarMarek Lindner <lindner_marek@yahoo.de>
Signed-off-by: default avatarAntonio Quartulli <antonio@meshcoding.com>
parent a1f1ac5c
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -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)