From 8a647387a0d36156b18bb3fc2dbbddb9f9229f99 Mon Sep 17 00:00:00 2001 From: laurettaSchubert Date: Mon, 11 May 2026 12:41:59 +0200 Subject: [PATCH] Fix Tautology in src/core/xaie_uc.c --- src/core/xaie_uc.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/core/xaie_uc.c b/src/core/xaie_uc.c index c4eea17c..5e6fe857 100755 --- a/src/core/xaie_uc.c +++ b/src/core/xaie_uc.c @@ -238,12 +238,7 @@ static AieRC _XAie_WriteProgramSection(XAie_DevInst *DevInst, XAie_LocType Loc, return _XAie_LoadProgMemSection(DevInst, Loc, ProgSec, Phdr); } - if((Phdr->p_filesz == 0U) || (Phdr->p_filesz != 0U)) { - return _XAie_LoadDataMemSection(DevInst, Loc, ProgSec, Phdr); - } else { - XAIE_WARN("Mismatch in program header to data memory loadable section. Skipping this program section.\n"); - return XAIE_OK; - } + return _XAie_LoadDataMemSection(DevInst, Loc, ProgSec, Phdr); } /*****************************************************************************/