]> git.proxmox.com Git - mirror_edk2.git/commitdiff
MdeModulePkg EmmcBlockIoPei: Remove a redundant function
authorshenglei <shenglei.zhang@intel.com>
Wed, 8 Aug 2018 08:16:30 +0000 (16:16 +0800)
committerStar Zeng <star.zeng@intel.com>
Tue, 21 Aug 2018 08:29:06 +0000 (16:29 +0800)
The function EmmcPeimUnlinkMemBlock that is never called
has been removed.
https://bugzilla.tianocore.org/show_bug.cgi?id=1062

v2: Remove the comment that mentioned 'EmmcPeimUnlinkMemBlock'
within function EmmcPeimFreeMemPool().

Cc: Star Zeng <star.zeng@intel.com>
Cc: Eric Dong <eric.dong@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: shenglei <shenglei.zhang@intel.com>
Reviewed-by: Hao Wu <hao.a.wu@intel.com>
Reviewed-by: Star Zeng <star.zeng@intel.com>
MdeModulePkg/Bus/Sd/EmmcBlockIoPei/EmmcHcMem.c

index a6f188f38555bba08fe0505be853a65e544a3505..a55a34a3dc3a3ddceb469e7222d852432c02ea73 100644 (file)
@@ -219,31 +219,7 @@ EmmcPeimIsMemBlockEmpty (
   return TRUE;\r
 }\r
 \r
-/**\r
-  Unlink the memory block from the pool's list.\r
-\r
-  @param  Head           The block list head of the memory's pool.\r
-  @param  BlockToUnlink  The memory block to unlink.\r
 \r
-**/\r
-VOID\r
-EmmcPeimUnlinkMemBlock (\r
-  IN EMMC_PEIM_MEM_BLOCK      *Head,\r
-  IN EMMC_PEIM_MEM_BLOCK      *BlockToUnlink\r
-  )\r
-{\r
-  EMMC_PEIM_MEM_BLOCK         *Block;\r
-\r
-  ASSERT ((Head != NULL) && (BlockToUnlink != NULL));\r
-\r
-  for (Block = Head; Block != NULL; Block = Block->Next) {\r
-    if (Block->Next == BlockToUnlink) {\r
-      Block->Next         = BlockToUnlink->Next;\r
-      BlockToUnlink->Next = NULL;\r
-      break;\r
-    }\r
-  }\r
-}\r
 \r
 /**\r
   Initialize the memory management pool for the host controller.\r
@@ -305,8 +281,6 @@ EmmcPeimFreeMemPool (
 \r
   //\r
   // Unlink all the memory blocks from the pool, then free them.\r
-  // EmmcPeimUnlinkMemBlock can't be used to unlink and free the\r
-  // first block.\r
   //\r
   for (Block = Pool->Head->Next; Block != NULL; Block = Pool->Head->Next) {\r
     EmmcPeimFreeMemBlock (Pool, Block);\r