codegen: Use has_end_attr instead of has_attr("end")

Just style, they do the same thing, but is more coherent
with the rest of the code.

Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
Acked-by: Uri Lublin <uril@redhat.com>
This commit is contained in:
Frediano Ziglio 2019-08-13 17:07:44 +01:00
parent 01417b7533
commit 7abd2b36d9

View File

@ -804,7 +804,7 @@ def write_array_parser(writer, member, nelements, array, dest, scope):
element_type = array.element_type
if member:
array_start = dest.get_ref(member.name)
at_end = member.has_attr("end")
at_end = member.has_end_attr()
else:
array_start = "end"
at_end = True