diff options
author | Leif Lindholm <leif.lindholm@linaro.org> | 2017-10-04 09:08:28 +0100 |
---|---|---|
committer | Leif Lindholm <leif.lindholm@linaro.org> | 2017-10-05 13:53:17 +0100 |
commit | a4591fe0b014b7ddcac61bbf4a5b26e2b21c55bb (patch) | |
tree | 990792e9b8998e55a3b63162029ec984924b186d /Silicon/Hisilicon/Pv660/Drivers | |
parent | 199622f1a3161e9c33c9d5b6d8d8160a2cf29906 (diff) | |
download | edk2-platforms-a4591fe0b014b7ddcac61bbf4a5b26e2b21c55bb.tar.xz |
Platform/Hisilicon: fix D02 driver indentation errors
When building with a somewhat recent toolchain (GCC 6.3), the D02
platform fails due to (the implicit) -Werror=misleading-indentation.
Cc: Heyi Guo <heyi.guo@linaro.org>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Leif Lindholm <leif.lindholm@linaro.org>
Reviewed-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Diffstat (limited to 'Silicon/Hisilicon/Pv660/Drivers')
-rw-r--r-- | Silicon/Hisilicon/Pv660/Drivers/PcieInitDxe/PcieInitLib.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Silicon/Hisilicon/Pv660/Drivers/PcieInitDxe/PcieInitLib.c b/Silicon/Hisilicon/Pv660/Drivers/PcieInitDxe/PcieInitLib.c index 3581b41c90..3739a36e64 100644 --- a/Silicon/Hisilicon/Pv660/Drivers/PcieInitDxe/PcieInitLib.c +++ b/Silicon/Hisilicon/Pv660/Drivers/PcieInitDxe/PcieInitLib.c @@ -570,7 +570,7 @@ EFI_STATUS AssertPciePcsReset(UINT32 HostBridgeNum,UINT32 Port) if (pcs_local_status_checked)
DEBUG((EFI_D_ERROR, "pcs local reset status read failed\n"));
- count = 0;
+ count = 0;
do {
MicroSecondDelay(1000);
count ++;
@@ -583,7 +583,7 @@ EFI_STATUS AssertPciePcsReset(UINT32 HostBridgeNum,UINT32 Port) if (hilink_status_checked)
DEBUG((EFI_D_ERROR, "error:pcs assert reset failed\n"));
- return EFI_SUCCESS;
+ return EFI_SUCCESS;
}
EFI_STATUS DeassertPciePcsReset(UINT32 HostBridgeNum, UINT32 Port)
@@ -616,7 +616,7 @@ EFI_STATUS DeassertPciePcsReset(UINT32 HostBridgeNum, UINT32 Port) if (pcs_local_status_checked)
DEBUG((EFI_D_ERROR, "pcs deassert reset failed!\n"));
- count = 0;
+ count = 0;
do {
MicroSecondDelay(1000);
RegRead(pcie_subctrl_base[HostBridgeNum] + PCIE_SUBCTRL_SC_PCIE_HILINK_PCS_RESET_ST_REG, hilink_reset_status);
@@ -627,7 +627,7 @@ EFI_STATUS DeassertPciePcsReset(UINT32 HostBridgeNum, UINT32 Port) if (hilink_status_checked)
DEBUG((EFI_D_ERROR, "pcs deassert reset failed!\n"));
- return EFI_SUCCESS;
+ return EFI_SUCCESS;
}
VOID PcieGen3Config(UINT32 HostBridgeNum, UINT32 Port)
@@ -777,7 +777,7 @@ EFI_STATUS HisiPcieClockCtrl(UINT32 soctype, UINT32 HostBridgeNum, UINT32 Port, if (clock_status_checked)
DEBUG((EFI_D_ERROR, "clock operation failed!\n"));
- return EFI_SUCCESS;
+ return EFI_SUCCESS;
}
VOID PcieSpdSet(UINT32 soctype, UINT32 HostBridgeNum, UINT32 Port, UINT8 Spd)
|