From c436d7875012915ab7f18250297561a39fac59d2 Mon Sep 17 00:00:00 2001 From: Philippe Proulx Date: Tue, 28 Jul 2015 15:09:06 -0400 Subject: [PATCH] ir: do not cache variant type's alignment MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit A variant type's alignment will always be 0 any way, so this caching step is not needed. Signed-off-by: Philippe Proulx Signed-off-by: Jérémie Galarneau --- formats/ctf/ir/event-types.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/formats/ctf/ir/event-types.c b/formats/ctf/ir/event-types.c index 31cd2524..91104860 100644 --- a/formats/ctf/ir/event-types.c +++ b/formats/ctf/ir/event-types.c @@ -2504,8 +2504,6 @@ void bt_ctf_field_type_variant_freeze(struct bt_ctf_field_type *type) struct bt_ctf_field_type_variant *variant_type = container_of( type, struct bt_ctf_field_type_variant, parent); - /* Cache the alignment */ - type->declaration->alignment = bt_ctf_field_type_get_alignment(type); generic_field_type_freeze(type); g_ptr_array_foreach(variant_type->fields, (GFunc) freeze_structure_field, NULL); -- 2.34.1