]> git.proxmox.com Git - mirror_edk2.git/commitdiff
MdeModulePkg EhciPei: Remove a redundant function
authorshenglei <shenglei.zhang@intel.com>
Wed, 22 Aug 2018 01:46:41 +0000 (09:46 +0800)
committerStar Zeng <star.zeng@intel.com>
Thu, 30 Aug 2018 06:44:03 +0000 (14:44 +0800)
The function UsbHcUnlinkMemBlock that is never called
and its related comments have been removed.
It is missed in the patch series according to the log in
https://bugzilla.tianocore.org/show_bug.cgi?id=1062

v2:Update the title.

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: Star Zeng <star.zeng@intel.com>
MdeModulePkg/Bus/Pci/EhciPei/UsbHcMem.c

index 3cc31f50548ade616c369892063acddc4c64b287..9f048e7b27d98be06e0045a20d4909c0ca648e2f 100644 (file)
@@ -293,31 +293,6 @@ UsbHcIsMemBlockEmpty (
   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
-UsbHcUnlinkMemBlock (\r
-  IN USBHC_MEM_BLOCK      *Head,\r
-  IN USBHC_MEM_BLOCK      *BlockToUnlink\r
-  )\r
-{\r
-  USBHC_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
@@ -390,8 +365,6 @@ UsbHcFreeMemPool (
 \r
   //\r
   // Unlink all the memory blocks from the pool, then free them.\r
-  // UsbHcUnlinkMemBlock can't be used to unlink and free the\r
-  // first block.\r
   //\r
   for (Block = Pool->Head->Next; Block != NULL; Block = Block->Next) {\r
     UsbHcFreeMemBlock (Ehc, Pool, Block);\r