[edk2-devel] [PATCH v2 16/17] UefiPayloadPkg: Remove duplicated words

PierreGondois pierre.gondois at arm.com
Tue Sep 6 08:29:11 UTC 2022


From: Pierre Gondois <pierre.gondois at arm.com>

In an effort to clean the documentation of the above
package, remove duplicated words.

Cc: Guo Dong <guo.dong at intel.com>
Cc: Ray Ni <ray.ni at intel.com>
Cc: Sean Rhodes <sean at starlabs.systems>
Signed-off-by: Pierre Gondois <pierre.gondois at arm.com>
---
 UefiPayloadPkg/Include/Library/SpiFlashLib.h        | 2 +-
 UefiPayloadPkg/Library/SpiFlashLib/SpiFlashLib.c    | 2 +-
 UefiPayloadPkg/PayloadLoaderPeim/ElfLib/Elf32Lib.c  | 2 +-
 UefiPayloadPkg/PayloadLoaderPeim/ElfLib/Elf64Lib.c  | 2 +-
 UefiPayloadPkg/UefiPayloadEntry/Ia32/DxeLoadFunc.c  | 2 +-
 UefiPayloadPkg/UefiPayloadEntry/X64/VirtualMemory.c | 6 +++---
 6 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/UefiPayloadPkg/Include/Library/SpiFlashLib.h b/UefiPayloadPkg/Include/Library/SpiFlashLib.h
index 07f40502f251..8906dad043b0 100644
--- a/UefiPayloadPkg/Include/Library/SpiFlashLib.h
+++ b/UefiPayloadPkg/Include/Library/SpiFlashLib.h
@@ -194,7 +194,7 @@ SpiConstructor (
 /**
   Get the SPI region base and size, based on the enum type
 
-  @param[in] FlashRegionType      The Flash Region type for for the base address which is listed in the Descriptor.
+  @param[in] FlashRegionType      The Flash Region type for the base address which is listed in the Descriptor.
   @param[out] BaseAddress         The Flash Linear Address for the Region 'n' Base
   @param[out] RegionSize          The size for the Region 'n'
 
diff --git a/UefiPayloadPkg/Library/SpiFlashLib/SpiFlashLib.c b/UefiPayloadPkg/Library/SpiFlashLib/SpiFlashLib.c
index 22639a748c04..58c86ade8997 100644
--- a/UefiPayloadPkg/Library/SpiFlashLib/SpiFlashLib.c
+++ b/UefiPayloadPkg/Library/SpiFlashLib/SpiFlashLib.c
@@ -807,7 +807,7 @@ WaitForSpiCycleComplete (
 /**
   Get the SPI region base and size, based on the enum type
 
-  @param[in] FlashRegionType      The Flash Region type for for the base address which is listed in the Descriptor.
+  @param[in] FlashRegionType      The Flash Region type for the base address which is listed in the Descriptor.
   @param[out] BaseAddress         The Flash Linear Address for the Region 'n' Base
   @param[out] RegionSize          The size for the Region 'n'
 
diff --git a/UefiPayloadPkg/PayloadLoaderPeim/ElfLib/Elf32Lib.c b/UefiPayloadPkg/PayloadLoaderPeim/ElfLib/Elf32Lib.c
index cb915e7142eb..6df421bcf99e 100644
--- a/UefiPayloadPkg/PayloadLoaderPeim/ElfLib/Elf32Lib.c
+++ b/UefiPayloadPkg/PayloadLoaderPeim/ElfLib/Elf32Lib.c
@@ -467,7 +467,7 @@ LoadElf32Image (
   }
 
   //
-  // Relocate when new new image base is not the preferred image base.
+  // Relocate when new image base is not the preferred image base.
   //
   if (ElfCt->ImageAddress != ElfCt->PreferredImageAddress) {
     RelocateElf32Sections (ElfCt);
diff --git a/UefiPayloadPkg/PayloadLoaderPeim/ElfLib/Elf64Lib.c b/UefiPayloadPkg/PayloadLoaderPeim/ElfLib/Elf64Lib.c
index c8dbb887340b..e95b31d82671 100644
--- a/UefiPayloadPkg/PayloadLoaderPeim/ElfLib/Elf64Lib.c
+++ b/UefiPayloadPkg/PayloadLoaderPeim/ElfLib/Elf64Lib.c
@@ -476,7 +476,7 @@ LoadElf64Image (
   }
 
   //
-  // Relocate when new new image base is not the preferred image base.
+  // Relocate when new image base is not the preferred image base.
   //
   if (ElfCt->ImageAddress != ElfCt->PreferredImageAddress) {
     RelocateElf64Sections (ElfCt);
diff --git a/UefiPayloadPkg/UefiPayloadEntry/Ia32/DxeLoadFunc.c b/UefiPayloadPkg/UefiPayloadEntry/Ia32/DxeLoadFunc.c
index c66e56aee15a..43f53d4cfae9 100644
--- a/UefiPayloadPkg/UefiPayloadEntry/Ia32/DxeLoadFunc.c
+++ b/UefiPayloadPkg/UefiPayloadEntry/Ia32/DxeLoadFunc.c
@@ -131,7 +131,7 @@ Create4GPageTablesIa32Pae (
   for (IndexOfPdpEntries = 0; IndexOfPdpEntries < NumberOfPdpEntriesNeeded; IndexOfPdpEntries++, PageDirectoryPointerEntry++) {
     //
     // Each Directory Pointer entries points to a page of Page Directory entires.
-    // So allocate space for them and fill them in in the IndexOfPageDirectoryEntries loop.
+    // So allocate space for them and fill them in the IndexOfPageDirectoryEntries loop.
     //
     PageDirectoryEntry = (VOID *)PageAddress;
     PageAddress       += SIZE_4KB;
diff --git a/UefiPayloadPkg/UefiPayloadEntry/X64/VirtualMemory.c b/UefiPayloadPkg/UefiPayloadEntry/X64/VirtualMemory.c
index 1899404b244c..ec942ead3445 100644
--- a/UefiPayloadPkg/UefiPayloadEntry/X64/VirtualMemory.c
+++ b/UefiPayloadPkg/UefiPayloadEntry/X64/VirtualMemory.c
@@ -822,7 +822,7 @@ CreateIdentityMappingPageTables (
   {
     //
     // Each PML5 entry points to a page of PML4 entires.
-    // So lets allocate space for them and fill them in in the IndexOfPml4Entries loop.
+    // So lets allocate space for them and fill them in the IndexOfPml4Entries loop.
     // When 5-Level Paging is disabled, below allocation happens only once.
     //
     PageMapLevel4Entry = (VOID *)BigPageAddress;
@@ -844,7 +844,7 @@ CreateIdentityMappingPageTables (
     {
       //
       // Each PML4 entry points to a page of Page Directory Pointer entires.
-      // So lets allocate space for them and fill them in in the IndexOfPdpEntries loop.
+      // So lets allocate space for them and fill them in the IndexOfPdpEntries loop.
       //
       PageDirectoryPointerEntry = (VOID *)BigPageAddress;
       BigPageAddress           += SIZE_4KB;
@@ -879,7 +879,7 @@ CreateIdentityMappingPageTables (
         {
           //
           // Each Directory Pointer entries points to a page of Page Directory entires.
-          // So allocate space for them and fill them in in the IndexOfPageDirectoryEntries loop.
+          // So allocate space for them and fill them in the IndexOfPageDirectoryEntries loop.
           //
           PageDirectoryEntry = (VOID *)BigPageAddress;
           BigPageAddress    += SIZE_4KB;
-- 
2.25.1



-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#93207): https://edk2.groups.io/g/devel/message/93207
Mute This Topic: https://groups.io/mt/93496614/1813853
Group Owner: devel+owner at edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [edk2-devel-archive at redhat.com]
-=-=-=-=-=-=-=-=-=-=-=-




More information about the edk2-devel-archive mailing list