MdeModulePkg/RamDiskDxe: Use BaseLib linked list iteration macros
REF:https://bugzilla.tianocore.org/show_bug.cgi?id=1959 Replaces usage of the linked list iteration macros defined in RamDiskImpl.h with the common definition in BaseLib.h. Cc: Dandan Bi <dandan.bi@intel.com> Cc: Hao A Wu <hao.a.wu@intel.com> Cc: Jian J Wang <jian.j.wang@intel.com> Cc: Liming Gao <liming.gao@intel.com> Cc: Ray Ni <ray.ni@intel.com> Cc: Sean Brogan <sean.brogan@microsoft.com> Signed-off-by: Michael Kubacki <michael.kubacki@microsoft.com> Reviewed-by: Hao A Wu <hao.a.wu@intel.com> Reviewed-by: Liming Gao <liming.gao@intel.com> Reviewed-by: Bret Barkelew <bret.barkelew@microsoft.com>
This commit is contained in:
committed by
mergify[bot]
parent
d189a3f9b6
commit
9c463f6f59
@ -3,6 +3,7 @@
|
||||
|
||||
Copyright (c) 2016 - 2019, Intel Corporation. All rights reserved.<BR>
|
||||
(C) Copyright 2016 Hewlett Packard Enterprise Development LP<BR>
|
||||
Copyright (c) Microsoft Corporation.<BR>
|
||||
SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||
|
||||
**/
|
||||
@ -662,7 +663,7 @@ RamDiskRegister (
|
||||
if (!IsListEmpty(&RegisteredRamDisks)) {
|
||||
DevicePathSize = GetDevicePathSize (PrivateData->DevicePath);
|
||||
|
||||
EFI_LIST_FOR_EACH (Entry, &RegisteredRamDisks) {
|
||||
BASE_LIST_FOR_EACH (Entry, &RegisteredRamDisks) {
|
||||
RegisteredPrivateData = RAM_DISK_PRIVATE_FROM_THIS (Entry);
|
||||
if (DevicePathSize == GetDevicePathSize (RegisteredPrivateData->DevicePath)) {
|
||||
//
|
||||
@ -797,7 +798,7 @@ RamDiskUnregister (
|
||||
EndingAddr = ReadUnaligned64 ((UINT64 *) &(RamDiskDevNode->EndingAddr[0]));
|
||||
|
||||
if (!IsListEmpty(&RegisteredRamDisks)) {
|
||||
EFI_LIST_FOR_EACH_SAFE (Entry, NextEntry, &RegisteredRamDisks) {
|
||||
BASE_LIST_FOR_EACH_SAFE (Entry, NextEntry, &RegisteredRamDisks) {
|
||||
PrivateData = RAM_DISK_PRIVATE_FROM_THIS (Entry);
|
||||
|
||||
//
|
||||
|
Reference in New Issue
Block a user