summaryrefslogtreecommitdiffstats
path: root/src/mainboard
diff options
context:
space:
mode:
authorElyes HAOUAS <ehaouas@noos.fr>2020-08-04 13:27:52 +0200
committerAngel Pons <th3fanbus@gmail.com>2020-08-05 11:37:00 +0000
commit5ba154a597e7177e34a588cd9e07a4cc7f16b837 (patch)
treef62c855f21ae9f4062ed09dee239f9c00428c486 /src/mainboard
parent6aa9d668739a29ebbaabd435d261f90176a72261 (diff)
downloadcoreboot-5ba154a597e7177e34a588cd9e07a4cc7f16b837.tar.gz
coreboot-5ba154a597e7177e34a588cd9e07a4cc7f16b837.tar.bz2
coreboot-5ba154a597e7177e34a588cd9e07a4cc7f16b837.zip
src: Use space after 'if', 'for'
Change-Id: I5d3a5ede47aefc7cc2ee330f8a0bcded16138764 Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/c/coreboot/+/44173 Reviewed-by: Angel Pons <th3fanbus@gmail.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/mainboard')
-rw-r--r--src/mainboard/google/peach_pit/mainboard.c2
-rw-r--r--src/mainboard/google/peach_pit/romstage.c6
-rw-r--r--src/mainboard/roda/rk886ex/m3885.c2
3 files changed, 5 insertions, 5 deletions
diff --git a/src/mainboard/google/peach_pit/mainboard.c b/src/mainboard/google/peach_pit/mainboard.c
index 8b54b9977a1b..33541b231e36 100644
--- a/src/mainboard/google/peach_pit/mainboard.c
+++ b/src/mainboard/google/peach_pit/mainboard.c
@@ -254,7 +254,7 @@ static void parade_dp_bridge_setup(void)
* we're out of here.
* If it's not ready after a second, then we're in big trouble.
*/
- for(i = 0; i < 1000; i++){
+ for (i = 0; i < 1000; i++){
if (gpio_get_value(dp_hpd))
break;
mdelay(1);
diff --git a/src/mainboard/google/peach_pit/romstage.c b/src/mainboard/google/peach_pit/romstage.c
index d99db809efd4..53fdfbacd40c 100644
--- a/src/mainboard/google/peach_pit/romstage.c
+++ b/src/mainboard/google/peach_pit/romstage.c
@@ -129,13 +129,13 @@ static unsigned long primitive_mem_test(void)
unsigned long *l = (void *)0x40000000;
int bad = 0;
unsigned long i;
- for(i = 0; i < 256*1048576; i++){
+ for (i = 0; i < 256*1048576; i++){
if (! (i%1048576))
printk(BIOS_SPEW, "%lu ...", i);
l[i] = 0xffffffff - i;
}
- for(i = 0; i < 256*1048576; i++){
+ for (i = 0; i < 256*1048576; i++){
if (! (i%1048576))
printk(BIOS_SPEW, "%lu ...", i);
if (l[i] != (0xffffffff - i)){
@@ -177,7 +177,7 @@ static void simple_spi_test(void)
}
- for(i = 0; i < amt; i += 4){
+ for (i = 0; i < amt; i += 4){
if (rdev_readat(boot_dev, &in, i, 4) < 4) {
printk(BIOS_SPEW, "simple_spi_test fails at %d\n", i);
return;
diff --git a/src/mainboard/roda/rk886ex/m3885.c b/src/mainboard/roda/rk886ex/m3885.c
index 6756e0e9b313..59dd5756705d 100644
--- a/src/mainboard/roda/rk886ex/m3885.c
+++ b/src/mainboard/roda/rk886ex/m3885.c
@@ -251,7 +251,7 @@ void m3885_configure_multikey(void)
maxvars = m3885_get_variable(0x00);
printk(BIOS_DEBUG, "M388x has %d variables in original bank.\n", maxvars);
for (i = 0; i < ARRAY_SIZE(variables); i+=3) {
- if(variables[i + 0] > maxvars)
+ if (variables[i + 0] > maxvars)
continue;
reg8 = m3885_get_variable(variables[i + 0]);
reg8 &= ~(variables[i + 1]);