summaryrefslogtreecommitdiffstats
path: root/SecurityPkg/Tcg/Tcg2Smm
diff options
context:
space:
mode:
authorZhang, Chao B <chao.b.zhang@intel.com>2017-01-05 10:11:07 +0800
committerZhang, Chao B <chao.b.zhang@intel.com>2017-01-05 10:47:03 +0800
commit3304abc101a19735c29d8b48a270576e72e7049e (patch)
tree65c6584453f5f0a153158ea83ed66c780b0a43bd /SecurityPkg/Tcg/Tcg2Smm
parenta6e0e994d0e855f7f65f6fb7e113f061e0b9a242 (diff)
downloadedk2-3304abc101a19735c29d8b48a270576e72e7049e.tar.gz
edk2-3304abc101a19735c29d8b48a270576e72e7049e.tar.bz2
edk2-3304abc101a19735c29d8b48a270576e72e7049e.zip
SecuritPkg: Tcg2: Fix coding style issue
Fix coding style issue Cc: Bi Dandan <dandan.bi@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Chao Zhang <chao.b.zhang@intel.com> Reviewed-by: Bi Dandan <dandan.bi@intel.com>
Diffstat (limited to 'SecurityPkg/Tcg/Tcg2Smm')
-rw-r--r--SecurityPkg/Tcg/Tcg2Smm/Tcg2Smm.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/SecurityPkg/Tcg/Tcg2Smm/Tcg2Smm.c b/SecurityPkg/Tcg/Tcg2Smm/Tcg2Smm.c
index 968f32710d..3ca6958a6e 100644
--- a/SecurityPkg/Tcg/Tcg2Smm/Tcg2Smm.c
+++ b/SecurityPkg/Tcg/Tcg2Smm/Tcg2Smm.c
@@ -317,7 +317,7 @@ UpdateHID (
{
EFI_STATUS Status;
UINT8 *DataPtr;
- CHAR8 HID[TPM_HID_ACPI_SIZE];
+ CHAR8 Hid[TPM_HID_ACPI_SIZE];
UINT32 ManufacturerID;
UINT32 FirmwareVersion1;
UINT32 FirmwareVersion2;
@@ -328,7 +328,7 @@ UpdateHID (
//
// Initialize HID with Default PNP string
//
- ZeroMem(HID, TPM_HID_ACPI_SIZE);
+ ZeroMem(Hid, TPM_HID_ACPI_SIZE);
//
// Get Manufacturer ID
@@ -345,13 +345,13 @@ UpdateHID (
// HID containing PNP ID "NNN####"
// NNN is uppercase letter for Vendor ID specified by manufacturer
//
- CopyMem(HID, &ManufacturerID, 3);
+ CopyMem(Hid, &ManufacturerID, 3);
} else {
//
// HID containing ACP ID "NNNN####"
// NNNN is uppercase letter for Vendor ID specified by manufacturer
//
- CopyMem(HID, &ManufacturerID, 4);
+ CopyMem(Hid, &ManufacturerID, 4);
PnpHID = FALSE;
}
} else {
@@ -368,9 +368,9 @@ UpdateHID (
// #### is Firmware Version 1
//
if (PnpHID) {
- AsciiSPrint(HID + 3, TPM_HID_PNP_SIZE - 3, "%02d%02d", ((FirmwareVersion1 & 0xFFFF0000) >> 16), (FirmwareVersion1 && 0x0000FFFF));
+ AsciiSPrint(Hid + 3, TPM_HID_PNP_SIZE - 3, "%02d%02d", ((FirmwareVersion1 & 0xFFFF0000) >> 16), (FirmwareVersion1 && 0x0000FFFF));
} else {
- AsciiSPrint(HID + 4, TPM_HID_ACPI_SIZE - 4, "%02d%02d", ((FirmwareVersion1 & 0xFFFF0000) >> 16), (FirmwareVersion1 && 0x0000FFFF));
+ AsciiSPrint(Hid + 4, TPM_HID_ACPI_SIZE - 4, "%02d%02d", ((FirmwareVersion1 & 0xFFFF0000) >> 16), (FirmwareVersion1 && 0x0000FFFF));
}
} else {
@@ -387,14 +387,14 @@ UpdateHID (
DataPtr += 1) {
if (AsciiStrCmp((CHAR8 *)DataPtr, TPM_HID_TAG) == 0) {
if (PnpHID) {
- CopyMem(DataPtr, HID, TPM_HID_PNP_SIZE);
+ CopyMem(DataPtr, Hid, TPM_HID_PNP_SIZE);
//
// if HID is PNP ID, patch the last byte in HID TAG to Noop
//
*(DataPtr + TPM_HID_PNP_SIZE) = AML_NOOP_OP;
} else {
- CopyMem(DataPtr, HID, TPM_HID_ACPI_SIZE);
+ CopyMem(DataPtr, Hid, TPM_HID_ACPI_SIZE);
}
DEBUG((DEBUG_INFO, "TPM2 ACPI _HID is patched to %a\n", DataPtr));