From ee1ff92026e26a2ebb4fed557b880ac81fa2f7f7 Mon Sep 17 00:00:00 2001 From: Min Zhou Date: Tue, 28 Jan 2025 00:34:46 +0000 Subject: [PATCH] rocr: delete duplicated conditional expression Change-Id: Idc8b1a8ca2975f33191a448f03cabf3fc4f8f8a6 [ROCm/ROCR-Runtime commit: a82f2f31342e0227f6ebfd9e9c845b8e9c118a09] --- .../runtime/hsa-runtime/libamdhsacode/amd_elf_image.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/rocr-runtime/runtime/hsa-runtime/libamdhsacode/amd_elf_image.cpp b/projects/rocr-runtime/runtime/hsa-runtime/libamdhsacode/amd_elf_image.cpp index 1005d8d60c..2fdaab0b2d 100644 --- a/projects/rocr-runtime/runtime/hsa-runtime/libamdhsacode/amd_elf_image.cpp +++ b/projects/rocr-runtime/runtime/hsa-runtime/libamdhsacode/amd_elf_image.cpp @@ -1456,7 +1456,7 @@ namespace elf { } for (size_t i = 1; i < sections.size(); ++i) { - if (i == ehdr.e_shstrndx || i == ehdr.e_shstrndx) { continue; } + if (i == ehdr.e_shstrndx) { continue; } std::unique_ptr& section = sections[i]; if (section->type() == SHT_STRTAB) { strtabSection = static_cast(section.get()); } if (section->type() == SHT_SYMTAB) { symtabSection = static_cast(section.get()); }