loci: remove of_object_fixed_len lookup from list accessors
This can be done once inside the base class init function during the 'first'
operation.
diff --git a/c_gen/templates/list.c b/c_gen/templates/list.c
index 5ce3e96..9ff6e42 100644
--- a/c_gen/templates/list.c
+++ b/c_gen/templates/list.c
@@ -47,7 +47,7 @@
int rv;
of_object_t *obj = (of_object_t *)_obj;
- ${e_cls}_init(_obj, list->version, 0, 1);
+ ${e_cls}_init(_obj, list->version, -1, 1);
if ((rv = of_list_first(list, obj)) < 0) {
return rv;
@@ -59,8 +59,6 @@
:: if wire_length_get != 'NULL':
${wire_length_get}(obj, &obj->length);
-:: else:
- obj->length = of_object_fixed_len[obj->version][obj->object_id];
:: #endif
return rv;
@@ -90,8 +88,6 @@
:: if wire_length_get != 'NULL':
${wire_length_get}(obj, &obj->length);
-:: else:
- obj->length = of_object_fixed_len[obj->version][obj->object_id];
:: #endif
return rv;