]> git.proxmox.com Git - mirror_edk2.git/blobdiff - IntelFrameworkModulePkg/Bus/Pci/PciBusDxe/PciPowerManagement.c
fixed ECC and Klocwork issues.
[mirror_edk2.git] / IntelFrameworkModulePkg / Bus / Pci / PciBusDxe / PciPowerManagement.c
index 1ccdfa87dcfa883866cc8c6c98e32c2fa5f5ea19..5ebbaf910cbbf18878e8456705eda243fc9a1957 100644 (file)
@@ -1,4 +1,4 @@
-/**@file\r
+/** @file\r
 \r
 Copyright (c) 2006, Intel Corporation                                                         \r
 All rights reserved. This program and the accompanying materials                          \r
@@ -30,7 +30,7 @@ ResetPowerManagementFeature (
 {\r
   EFI_STATUS  Status;\r
   UINT8       PowerManagementRegBlock;\r
-  UINT16      PMCSR;\r
+  UINT16      PowerManagementCSR;\r
 \r
   PowerManagementRegBlock = 0;\r
 \r
@@ -48,7 +48,7 @@ ResetPowerManagementFeature (
   //\r
   // Turn off the PWE assertion and put the device into D0 State\r
   //\r
-  PMCSR = 0x8000;\r
+  PowerManagementCSR = 0x8000;\r
 \r
   //\r
   // Write PMCSR\r
@@ -58,7 +58,7 @@ ResetPowerManagementFeature (
                EfiPciIoWidthUint16,\r
                PowerManagementRegBlock + 4,\r
                1,\r
-               &PMCSR\r
+               &PowerManagementCSR\r
              );\r
 \r
   return EFI_SUCCESS;\r