Felix Held has submitted this change. ( https://review.coreboot.org/c/coreboot/+/61413 )
Change subject: src/{drivers,soc}: Fix some code indents ......................................................................
src/{drivers,soc}: Fix some code indents
Change-Id: I55682de4a1bc74f170e2044de35b0d8d53ef51ff Signed-off-by: Elyes HAOUAS ehaouas@noos.fr Reviewed-on: https://review.coreboot.org/c/coreboot/+/61413 Tested-by: build bot (Jenkins) no-reply@coreboot.org Reviewed-by: Hung-Te Lin hungte@chromium.org Reviewed-by: Paul Menzel paulepanter@mailbox.org --- M src/drivers/amd/agesa/mtrr_fixme.c M src/drivers/net/ne2k.c M src/soc/intel/baytrail/sata.c M src/soc/intel/braswell/ramstage.c M src/soc/mediatek/mt8173/dramc_pi_basic_api.c M src/soc/samsung/exynos5420/dp.c 6 files changed, 11 insertions(+), 11 deletions(-)
Approvals: build bot (Jenkins): Verified Paul Menzel: Looks good to me, but someone else must approve Hung-Te Lin: Looks good to me, approved
diff --git a/src/drivers/amd/agesa/mtrr_fixme.c b/src/drivers/amd/agesa/mtrr_fixme.c index a880ce7..c589553 100644 --- a/src/drivers/amd/agesa/mtrr_fixme.c +++ b/src/drivers/amd/agesa/mtrr_fixme.c @@ -20,7 +20,7 @@ for (i = 0; i < max_var_mtrrs; i++) { msr = rdmsr(MTRR_PHYS_MASK(i)); if (!(msr.lo & MTRR_PHYS_MASK_VALID)) - break; + break; } if (i == max_var_mtrrs) die("Run out of unused MTRRs\n"); diff --git a/src/drivers/net/ne2k.c b/src/drivers/net/ne2k.c index 971f31d..635315b 100644 --- a/src/drivers/net/ne2k.c +++ b/src/drivers/net/ne2k.c @@ -84,7 +84,7 @@ outb(D8390_COMMAND_RD1 | D8390_COMMAND_STA, eth_nic_base + D8390_P0_COMMAND);
while (cnt--) { - outb(*(src++), eth_nic_base + NE_ASIC_OFFSET + NE_DATA); + outb(*(src++), eth_nic_base + NE_ASIC_OFFSET + NE_DATA); } /* #warning "Add timeout" diff --git a/src/soc/intel/baytrail/sata.c b/src/soc/intel/baytrail/sata.c index 24c805a..5e5215b 100644 --- a/src/soc/intel/baytrail/sata.c +++ b/src/soc/intel/baytrail/sata.c @@ -71,7 +71,7 @@ pci_write_config16(dev, 0x92, reg16);
if (config->sata_ahci) { - u8 *abar = (u8 *)pci_read_config32(dev, PCI_BASE_ADDRESS_5); + u8 *abar = (u8 *)pci_read_config32(dev, PCI_BASE_ADDRESS_5);
/* Enable CR memory space decoding */ reg16 = pci_read_config16(dev, 0x04); diff --git a/src/soc/intel/braswell/ramstage.c b/src/soc/intel/braswell/ramstage.c index 48f2193..42d1f9f 100644 --- a/src/soc/intel/braswell/ramstage.c +++ b/src/soc/intel/braswell/ramstage.c @@ -68,11 +68,11 @@ dev = pcidev_on_root(LPC_DEV, LPC_FUNC); attrs->revid = pci_read_config8(dev, REVID); /* The revision to stepping IDs have two values per metal stepping. */ - if (attrs->revid >= RID_D_STEPPING_START) { + if (attrs->revid >= RID_D_STEPPING_START) { attrs->stepping = (attrs->revid - RID_D_STEPPING_START) / 2; attrs->stepping += STEP_D1;
- } else if (attrs->revid >= RID_C_STEPPING_START) { + } else if (attrs->revid >= RID_C_STEPPING_START) { attrs->stepping = (attrs->revid - RID_C_STEPPING_START) / 2; attrs->stepping += STEP_C0;
diff --git a/src/soc/mediatek/mt8173/dramc_pi_basic_api.c b/src/soc/mediatek/mt8173/dramc_pi_basic_api.c index 23a9403..10d03e0 100644 --- a/src/soc/mediatek/mt8173/dramc_pi_basic_api.c +++ b/src/soc/mediatek/mt8173/dramc_pi_basic_api.c @@ -828,7 +828,7 @@
/* 4. enable read/write test */ if (wr == TE_OP_READ_CHECK) { - if ((testaudpat == 1) || (testaudpat == 2)) { + if ((testaudpat == 1) || (testaudpat == 2)) { /* if audio pattern, enable read only */ /* (disable write after read), */ /* AUDMODE=0x48[15]=0 */ diff --git a/src/soc/samsung/exynos5420/dp.c b/src/soc/samsung/exynos5420/dp.c index 758e09b..13a8fef 100644 --- a/src/soc/samsung/exynos5420/dp.c +++ b/src/soc/samsung/exynos5420/dp.c @@ -336,8 +336,8 @@ ret = exynos_dp_write_byte_to_dpcd(DPCD_LANE_COUNT_SET, data); if (ret != EXYNOS_DP_SUCCESS) { - printk(BIOS_ERR, "DP write_to_dpcd failed\n"); - return -1; + printk(BIOS_ERR, "DP write_to_dpcd failed\n"); + return -1;
}
@@ -467,9 +467,9 @@
ret = exynos_dp_read_dpcd_lane_stat(edp_info, &lane_stat); if (ret != EXYNOS_DP_SUCCESS) { - printk(BIOS_ERR, "DP read lane status failed\n"); - edp_info->lt_info.lt_status = DP_LT_FAIL; - return ret; + printk(BIOS_ERR, "DP read lane status failed\n"); + edp_info->lt_info.lt_status = DP_LT_FAIL; + return ret; }
if (lane_stat & DP_LANE_STAT_CR_DONE) {