From: Zbigniew Jędrzejewski-Szmek Date: Fri, 22 Mar 2024 14:44:17 +0000 (+0100) Subject: tools/elf2efi: elif→if to make pylint happy X-Git-Tag: v256-rc1~437^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F31779%2Fhead;p=thirdparty%2Fsystemd.git tools/elf2efi: elif→if to make pylint happy --- diff --git a/tools/elf2efi.py b/tools/elf2efi.py index 2e7ca9f6c4e..cb1a284a601 100755 --- a/tools/elf2efi.py +++ b/tools/elf2efi.py @@ -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():