Skip to content

Commit

Permalink
SecurityPkg OpalPasswordSmm: Remove useless code.
Browse files Browse the repository at this point in the history
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 <[email protected]>
Reviewed-by: Feng Tian <[email protected]>
  • Loading branch information
ydong10 authored and hwu25 committed Jul 11, 2016
1 parent 8ed9ce8 commit c9a0755
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions SecurityPkg/Tcg/Opal/OpalPasswordSmm/OpalNvmeMode.c
Original file line number Diff line number Diff line change
Expand Up @@ -1007,9 +1007,6 @@ NvmePassThru (
Sq->Payload.Raw.Cdw15 = Packet->NvmeCmd->Cdw15;
}

#if (EN_NVME_VERBOSE_DBINFO == ON)
//DumpMem (Sq, sizeof (NVME_SQ));
#endif
///
/// Ring the submission queue doorbell.
///
Expand Down Expand Up @@ -1383,9 +1380,6 @@ NvmeSecuritySendReceive (
// Actions for sending security command
//
if (SendCommand) {
#if (EN_NVME_VERBOSE_DBINFO == ON)
//DumpMem (TransferBuffer, TransferLength);
#endif
CopyMem (SecBuff, TransferBuffer, TransferLength);
}

Expand Down Expand Up @@ -1427,9 +1421,6 @@ NvmeSecuritySendReceive (
//
if (!SendCommand) {
CopyMem (TransferBuffer, SecBuff, TransferLength);
#if (EN_NVME_VERBOSE_DBINFO == ON)
//DumpMem (TransferBuffer, TransferLength);
#endif
}

return Status;
Expand Down

0 comments on commit c9a0755

Please sign in to comment.