From: Nick Alcock Date: Mon, 25 Mar 2013 16:47:33 +0000 (+0000) Subject: ctf: repair faulty indentation X-Git-Tag: v4.1.12-92~313^2~85 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=9fa5e2547784428f62b49d1dc1ac76877bea6a0c;p=users%2Fjedix%2Flinux-maple.git ctf: repair faulty indentation Part of assemble_ctf_su_member() got misidented. Signed-off-by: Nick Alcock --- diff --git a/scripts/dwarf2ctf/dwarf2ctf.c b/scripts/dwarf2ctf/dwarf2ctf.c index 224280dc1022..205a945ed0eb 100644 --- a/scripts/dwarf2ctf/dwarf2ctf.c +++ b/scripts/dwarf2ctf/dwarf2ctf.c @@ -3000,27 +3000,27 @@ static ctf_id_t assemble_ctf_su_member(const char *module_name, * offsets). */ if (!dwarf_hasattr(die, DW_AT_name)) { - Dwarf_Die child_die; - int dummy = 0; - - if ((dwarf_tag(&type_die) != DW_TAG_structure_type) && - (dwarf_tag(&type_die) != DW_TAG_union_type)) { - fprintf(stderr, "%s:%lx: not supported: anonymous structure " - "member not a structure or union.\n", locerrstr, - (unsigned long) dwarf_dieoffset(die)); - *skip = SKIP_ABORT; - return CTF_ERROR_REPORTED; - } + Dwarf_Die child_die; + int dummy = 0; + + if ((dwarf_tag(&type_die) != DW_TAG_structure_type) && + (dwarf_tag(&type_die) != DW_TAG_union_type)) { + fprintf(stderr, "%s:%lx: not supported: anonymous " + "structure member not a structure or union.\n", + locerrstr, (unsigned long) dwarf_dieoffset(die)); + *skip = SKIP_ABORT; + return CTF_ERROR_REPORTED; + } - /* - * Anonymous structure or union with no members. Silently skip. - */ - if (dwarf_child(&type_die, &child_die) < 0) - return parent_ctf_id; + /* + * Anonymous structure or union with no members. Silently skip. + */ + if (dwarf_child(&type_die, &child_die) < 0) + return parent_ctf_id; - die_to_ctf(module_name, file_name, &child_die, parent_die, ctf, - parent_ctf_id, offset, 0, skip, &dummy, NULL); - return parent_ctf_id; + die_to_ctf(module_name, file_name, &child_die, parent_die, ctf, + parent_ctf_id, offset, 0, skip, &dummy, NULL); + return parent_ctf_id; } /*