]> git.proxmox.com Git - mirror_edk2.git/commitdiff
SecurityPkg OpalPasswordSmm: Remove useless code.
authorEric Dong <eric.dong@intel.com>
Fri, 8 Jul 2016 02:51:10 +0000 (10:51 +0800)
committerHao Wu <hao.a.wu@intel.com>
Mon, 11 Jul 2016 02:38:20 +0000 (10:38 +0800)
EdkII not allow to use #if in source code, also
the code in it already unused. so just remove this
code.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Eric Dong <eric.dong@intel.com>
Reviewed-by: Feng Tian <feng.tian@intel.com>
SecurityPkg/Tcg/Opal/OpalPasswordSmm/OpalNvmeMode.c

index ae9bfd9550bb7482f47dfb44f9c1e24e03438caa..3826698709ceaa23e6a00164fff159ddab6c79a4 100644 (file)
@@ -1007,9 +1007,6 @@ NvmePassThru (
     Sq->Payload.Raw.Cdw15 = Packet->NvmeCmd->Cdw15;\r
   }\r
 \r
-#if (EN_NVME_VERBOSE_DBINFO == ON)\r
-  //DumpMem (Sq, sizeof (NVME_SQ));\r
-#endif\r
   ///\r
   /// Ring the submission queue doorbell.\r
   ///\r
@@ -1383,9 +1380,6 @@ NvmeSecuritySendReceive (
   // Actions for sending security command\r
   //\r
   if (SendCommand) {\r
-#if (EN_NVME_VERBOSE_DBINFO == ON)\r
-    //DumpMem (TransferBuffer, TransferLength);\r
-#endif\r
     CopyMem (SecBuff, TransferBuffer, TransferLength);\r
   }\r
 \r
@@ -1427,9 +1421,6 @@ NvmeSecuritySendReceive (
   //\r
   if (!SendCommand) {\r
     CopyMem (TransferBuffer, SecBuff, TransferLength);\r
-#if (EN_NVME_VERBOSE_DBINFO == ON)\r
-    //DumpMem (TransferBuffer, TransferLength);\r
-#endif\r
   }\r
 \r
   return Status;\r