Repository : ssh://git@open-mesh.org/batctl
On branch : master
commit f6410e2a1a7297938e36369aee0c06661032116e Author: Simon Wunderlich simon.wunderlich@s2003.tu-chemnitz.de Date: Thu Apr 25 10:37:24 2013 +0200
batctl: 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
f6410e2a1a7297938e36369aee0c06661032116e packet.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/packet.h b/packet.h index 3cdefb9..82ac0dd 100644 --- a/packet.h +++ b/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)