OcAppleBootPolicyLib: Remove unnecessary append OP
@@ -459,7 +459,6 @@ InternalGetBooterFromApfsVolumePredefinedNameList (
EFI_STATUS Status;
EFI_FILE_PROTOCOL *VolumeDirectoryHandle;
EFI_FILE_INFO *VolumeDirectoryInfo;
- EFI_DEVICE_PATH_PROTOCOL *BooterPath;
Status = PrebootRoot->Open (
PrebootRoot,
@@ -500,7 +499,7 @@ InternalGetBooterFromApfsVolumePredefinedNameList (
Status = InternalGetBooterFromPredefinedNameList (
Device,
VolumeDirectoryHandle,
- DevicePath != NULL ? &BooterPath : NULL,
+ DevicePath,
VolumeDirectoryName
);
}
@@ -508,16 +507,9 @@ InternalGetBooterFromApfsVolumePredefinedNameList (
FreePool (VolumeDirectoryInfo);
VolumeDirectoryHandle->Close (VolumeDirectoryHandle);
- if (EFI_ERROR (Status) || DevicePath == NULL) {
return Status;
}
- *DevicePath = AppendDevicePath (*DevicePath, BooterPath);
- FreePool (BooterPath);
-
- return EFI_SUCCESS;
-}
-
/**
APFS boot happens from Preboot volume, which normally contains blessed file
or folder. In case blessed path location fails, we iterate every volume
