From 7053060f5f9ccc373ccb29607397d0f82c519751 Mon Sep 17 00:00:00 2001 From: Ruiyu Ni Date: Sun, 12 Jun 2016 14:54:02 +0800 Subject: [PATCH] IntelFrameworkModulePkg/LegacyBios: return NotFound when IsaIo absent Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ruiyu Ni Reviewed-by: Eric Dong --- IntelFrameworkModulePkg/Csm/LegacyBiosDxe/LegacySio.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/IntelFrameworkModulePkg/Csm/LegacyBiosDxe/LegacySio.c b/IntelFrameworkModulePkg/Csm/LegacyBiosDxe/LegacySio.c index 6c7d7d6b9f..9df91d15a3 100644 --- a/IntelFrameworkModulePkg/Csm/LegacyBiosDxe/LegacySio.c +++ b/IntelFrameworkModulePkg/Csm/LegacyBiosDxe/LegacySio.c @@ -23,7 +23,8 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. @param SioPtr Pointer to SIO data. - @retval EFI_SUCCESS It should always work. + @retval EFI_SUCCESS When SIO data is got successfully. + @retval EFI_NOT_FOUND When ISA IO interface is absent. **/ EFI_STATUS @@ -62,7 +63,7 @@ LegacyBiosBuildSioDataFromIsaIo ( &HandleBuffer ); if (EFI_ERROR (Status)) { - return EFI_SUCCESS; + return EFI_NOT_FOUND; } // // Collect legacy information from each of the ISA controllers in the system -- 2.39.2