]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
tools/elf2efi: elif→if to make pylint happy 31779/head
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 22 Mar 2024 14:44:17 +0000 (15:44 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 22 Mar 2024 14:44:17 +0000 (15:44 +0100)
tools/elf2efi.py

index 2e7ca9f6c4e24986a1d791bda5a57316df5e8f67..cb1a284a601020373dd74a8d66ab99543d8ebf3f 100755 (executable)
@@ -268,7 +268,7 @@ def iter_copy_sections(elf: ELFFile) -> typing.Iterator[PeSection]:
         if elf_seg["p_type"] == "PT_LOAD" and elf_seg["p_align"] != SECTION_ALIGNMENT:
             raise BadSectionError(f"ELF segment {elf_seg['p_type']} is not properly aligned"
                                   f" ({elf_seg['p_align']} != {SECTION_ALIGNMENT})")
-        elif elf_seg["p_type"] == "PT_GNU_RELRO":
+        if elf_seg["p_type"] == "PT_GNU_RELRO":
             relro = elf_seg
 
     for elf_s in elf.iter_sections():