From 81bf52d6d87e92f21678140322d32b726fc8f3b7 Mon Sep 17 00:00:00 2001 From: qhuang8 Date: Mon, 21 Sep 2009 14:35:01 +0000 Subject: [PATCH] Remove the error checking for multi-instance device path since Dxecore has been enhanced to handle that. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9295 6f19259b-4bc3-4df7-8a09-765794883524 --- MdeModulePkg/Core/Dxe/Hand/Locate.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/MdeModulePkg/Core/Dxe/Hand/Locate.c b/MdeModulePkg/Core/Dxe/Hand/Locate.c index 861cf12ee6..5a30c5264f 100644 --- a/MdeModulePkg/Core/Dxe/Hand/Locate.c +++ b/MdeModulePkg/Core/Dxe/Hand/Locate.c @@ -465,14 +465,6 @@ CoreLocateDevicePath ( SourceSize = (UINTN) TmpDevicePath - (UINTN) SourcePath; - // - // The source path can only have 1 instance - // - if (IsDevicePathMultiInstance (SourcePath)) { - DEBUG((DEBUG_ERROR, "LocateDevicePath: Device path has too many instances\n")); - return EFI_INVALID_PARAMETER; - } - // // Get a list of all handles that support the requested protocol //