[coreboot-gerrit] Patch set updated for coreboot: src/mainboard: Remove unnecessary whitespace

HAOUAS Elyes (ehaouas@noos.fr) gerrit at coreboot.org
Sun Oct 2 19:16:20 CEST 2016


HAOUAS Elyes (ehaouas at noos.fr) just uploaded a new patch set to gerrit, which you can find at https://review.coreboot.org/16849

-gerrit

commit aca639a5139b6c5a57b42c196f280aef04a6b3b7
Author: Elyes HAOUAS <ehaouas at noos.fr>
Date:   Sun Oct 2 10:09:11 2016 +0200

    src/mainboard: Remove unnecessary whitespace
    
    Change-Id: I35cb7e08d5233aa5a3dbb4631ab2ee4dc9596f98
    Signed-off-by: Elyes HAOUAS <ehaouas at noos.fr>
---
 src/mainboard/amd/dinar/BiosCallOuts.c           |  2 +-
 src/mainboard/amd/inagua/BiosCallOuts.c          | 12 ++++++------
 src/mainboard/amd/persimmon/BiosCallOuts.c       |  4 ++--
 src/mainboard/amd/south_station/BiosCallOuts.c   | 12 ++++++------
 src/mainboard/amd/union_station/BiosCallOuts.c   | 12 ++++++------
 src/mainboard/elmex/pcm205400/BiosCallOuts.c     |  4 ++--
 src/mainboard/google/butterfly/mainboard.c       |  2 +-
 src/mainboard/google/guado/lan.c                 |  2 +-
 src/mainboard/google/jecht/lan.c                 |  2 +-
 src/mainboard/google/panther/lan.c               |  2 +-
 src/mainboard/google/rikku/lan.c                 |  2 +-
 src/mainboard/google/tidus/lan.c                 |  2 +-
 src/mainboard/intel/eagleheights/debug.c         |  4 ++--
 src/mainboard/jetway/nf81-t56n-lf/BiosCallOuts.c |  4 ++--
 src/mainboard/lippert/frontrunner-af/mainboard.c |  2 +-
 src/mainboard/lippert/toucan-af/mainboard.c      |  2 +-
 16 files changed, 35 insertions(+), 35 deletions(-)

diff --git a/src/mainboard/amd/dinar/BiosCallOuts.c b/src/mainboard/amd/dinar/BiosCallOuts.c
index 0b43f72..004fe3e 100644
--- a/src/mainboard/amd/dinar/BiosCallOuts.c
+++ b/src/mainboard/amd/dinar/BiosCallOuts.c
@@ -45,7 +45,7 @@ static void select_socket(UINT8 socket_id)
 
 	/* Enable SMBus MMIO. */
 	PciAddress.AddressValue = MAKE_SBDFO (0, 0, 20, 0, 0xD2);
-	LibAmdPciRead(AccessWidth8, PciAddress, &PciData8, &StdHeader); ;
+	LibAmdPciRead(AccessWidth8, PciAddress, &PciData8, &StdHeader);
 	PciData8 |= BIT0;
 	LibAmdPciWrite(AccessWidth8, PciAddress, &PciData8, &StdHeader);
 
diff --git a/src/mainboard/amd/inagua/BiosCallOuts.c b/src/mainboard/amd/inagua/BiosCallOuts.c
index 4b64055..5d11c06 100644
--- a/src/mainboard/amd/inagua/BiosCallOuts.c
+++ b/src/mainboard/amd/inagua/BiosCallOuts.c
@@ -151,13 +151,13 @@ static AGESA_STATUS board_GnbPcieSlotReset (UINT32 Func, UINTN Data, VOID *Confi
 			switch (ResetInfo->ResetControl) {
 				case AssertSlotReset:
 					Data8 = Read64Mem8(GpioMmioAddr+SB_GPIO_REG21);
-					Data8 &= ~(UINT8)BIT6 ;
+					Data8 &= ~(UINT8)BIT6;
 					Write64Mem8(GpioMmioAddr+SB_GPIO_REG21, Data8);   // MXM_GPIO0. GPIO21
 					Status = AGESA_SUCCESS;
 					break;
 				case DeassertSlotReset:
 					Data8 = Read64Mem8(GpioMmioAddr+SB_GPIO_REG21);
-					Data8 |= BIT6 ;
+					Data8 |= BIT6;
 					Write64Mem8 (GpioMmioAddr+SB_GPIO_REG21, Data8);       // MXM_GPIO0. GPIO21
 					Status = AGESA_SUCCESS;
 					break;
@@ -167,13 +167,13 @@ static AGESA_STATUS board_GnbPcieSlotReset (UINT32 Func, UINTN Data, VOID *Confi
 			switch (ResetInfo->ResetControl) {
 				case AssertSlotReset:
 					Data8 = Read64Mem8(GpioMmioAddr+SB_GPIO_REG25);
-					Data8 &= ~(UINT8)BIT6 ;
+					Data8 &= ~(UINT8)BIT6;
 					Write64Mem8(GpioMmioAddr+SB_GPIO_REG25, Data8);   // PCIE_RST#_LAN, GPIO25
 					Status = AGESA_SUCCESS;
 					break;
 				case DeassertSlotReset:
 					Data8 = Read64Mem8(GpioMmioAddr+SB_GPIO_REG25);
-					Data8 |= BIT6 ;
+					Data8 |= BIT6;
 					Write64Mem8 (GpioMmioAddr+SB_GPIO_REG25, Data8);       // PCIE_RST#_LAN, GPIO25
 					Status = AGESA_SUCCESS;
 					break;
@@ -183,13 +183,13 @@ static AGESA_STATUS board_GnbPcieSlotReset (UINT32 Func, UINTN Data, VOID *Confi
 			switch (ResetInfo->ResetControl) {
 				case AssertSlotReset:
 					Data8 = Read64Mem8(GpioMmioAddr+SB_GPIO_REG02);
-					Data8 &= ~(UINT8)BIT6 ;
+					Data8 &= ~(UINT8)BIT6;
 					Write64Mem8(GpioMmioAddr+SB_GPIO_REG02, Data8);   // MPCIE_RST0, GPIO02
 					Status = AGESA_SUCCESS;
 					break;
 				case DeassertSlotReset:
 					Data8 = Read64Mem8(GpioMmioAddr+SB_GPIO_REG02);
-					Data8 |= BIT6 ;
+					Data8 |= BIT6;
 					Write64Mem8 (GpioMmioAddr+SB_GPIO_REG02, Data8);       // MPCIE_RST0, GPIO02
 					Status = AGESA_SUCCESS;
 					break;
diff --git a/src/mainboard/amd/persimmon/BiosCallOuts.c b/src/mainboard/amd/persimmon/BiosCallOuts.c
index b0b79ab..84ad355 100644
--- a/src/mainboard/amd/persimmon/BiosCallOuts.c
+++ b/src/mainboard/amd/persimmon/BiosCallOuts.c
@@ -76,13 +76,13 @@ static AGESA_STATUS board_GnbPcieSlotReset (UINT32 Func, UINTN Data, VOID *Confi
 		switch (ResetInfo->ResetControl) {
 		case AssertSlotReset:
 			Data8 = Read64Mem8(GpioMmioAddr+SB_GPIO_REG50);
-			Data8 &= ~(UINT8)BIT6 ;
+			Data8 &= ~(UINT8)BIT6;
 			Write64Mem8(GpioMmioAddr+SB_GPIO_REG50, Data8);
 			Status = AGESA_SUCCESS;
 			break;
 		case DeassertSlotReset:
 			Data8 = Read64Mem8(GpioMmioAddr+SB_GPIO_REG50);
-			Data8 |= BIT6 ;
+			Data8 |= BIT6;
 			Write64Mem8 (GpioMmioAddr+SB_GPIO_REG50, Data8);
 			Status = AGESA_SUCCESS;
 			break;
diff --git a/src/mainboard/amd/south_station/BiosCallOuts.c b/src/mainboard/amd/south_station/BiosCallOuts.c
index 711a0d5..bc28086 100644
--- a/src/mainboard/amd/south_station/BiosCallOuts.c
+++ b/src/mainboard/amd/south_station/BiosCallOuts.c
@@ -152,13 +152,13 @@ static AGESA_STATUS board_GnbPcieSlotReset (UINT32 Func, UINTN Data, VOID *Confi
       {
       case AssertSlotReset:
         Data8 = Read64Mem8(GpioMmioAddr+SB_GPIO_REG21);
-        Data8 &= ~(UINT8)BIT6 ;
+        Data8 &= ~(UINT8)BIT6;
         Write64Mem8(GpioMmioAddr+SB_GPIO_REG21, Data8);   // MXM_GPIO0. GPIO21
         Status = AGESA_SUCCESS;
         break;
       case DeassertSlotReset:
         Data8 = Read64Mem8(GpioMmioAddr+SB_GPIO_REG21);
-        Data8 |= BIT6 ;
+        Data8 |= BIT6;
         Write64Mem8 (GpioMmioAddr+SB_GPIO_REG21, Data8);       // MXM_GPIO0. GPIO21
         Status = AGESA_SUCCESS;
         break;
@@ -169,13 +169,13 @@ static AGESA_STATUS board_GnbPcieSlotReset (UINT32 Func, UINTN Data, VOID *Confi
       {
       case AssertSlotReset:
         Data8 = Read64Mem8(GpioMmioAddr+SB_GPIO_REG25);
-        Data8 &= ~(UINT8)BIT6 ;
+        Data8 &= ~(UINT8)BIT6;
         Write64Mem8(GpioMmioAddr+SB_GPIO_REG25, Data8);   // PCIE_RST#_LAN, GPIO25
         Status = AGESA_SUCCESS;
         break;
       case DeassertSlotReset:
         Data8 = Read64Mem8(GpioMmioAddr+SB_GPIO_REG25);
-        Data8 |= BIT6 ;
+        Data8 |= BIT6;
         Write64Mem8 (GpioMmioAddr+SB_GPIO_REG25, Data8);       // PCIE_RST#_LAN, GPIO25
         Status = AGESA_SUCCESS;
         break;
@@ -186,13 +186,13 @@ static AGESA_STATUS board_GnbPcieSlotReset (UINT32 Func, UINTN Data, VOID *Confi
       {
       case AssertSlotReset:
         Data8 = Read64Mem8(GpioMmioAddr+SB_GPIO_REG02);
-        Data8 &= ~(UINT8)BIT6 ;
+        Data8 &= ~(UINT8)BIT6;
         Write64Mem8(GpioMmioAddr+SB_GPIO_REG02, Data8);   // MPCIE_RST0, GPIO02
         Status = AGESA_SUCCESS;
         break;
       case DeassertSlotReset:
         Data8 = Read64Mem8(GpioMmioAddr+SB_GPIO_REG02);
-        Data8 |= BIT6 ;
+        Data8 |= BIT6;
         Write64Mem8 (GpioMmioAddr+SB_GPIO_REG02, Data8);       // MPCIE_RST0, GPIO02
         Status = AGESA_SUCCESS;
         break;
diff --git a/src/mainboard/amd/union_station/BiosCallOuts.c b/src/mainboard/amd/union_station/BiosCallOuts.c
index 711a0d5..bc28086 100644
--- a/src/mainboard/amd/union_station/BiosCallOuts.c
+++ b/src/mainboard/amd/union_station/BiosCallOuts.c
@@ -152,13 +152,13 @@ static AGESA_STATUS board_GnbPcieSlotReset (UINT32 Func, UINTN Data, VOID *Confi
       {
       case AssertSlotReset:
         Data8 = Read64Mem8(GpioMmioAddr+SB_GPIO_REG21);
-        Data8 &= ~(UINT8)BIT6 ;
+        Data8 &= ~(UINT8)BIT6;
         Write64Mem8(GpioMmioAddr+SB_GPIO_REG21, Data8);   // MXM_GPIO0. GPIO21
         Status = AGESA_SUCCESS;
         break;
       case DeassertSlotReset:
         Data8 = Read64Mem8(GpioMmioAddr+SB_GPIO_REG21);
-        Data8 |= BIT6 ;
+        Data8 |= BIT6;
         Write64Mem8 (GpioMmioAddr+SB_GPIO_REG21, Data8);       // MXM_GPIO0. GPIO21
         Status = AGESA_SUCCESS;
         break;
@@ -169,13 +169,13 @@ static AGESA_STATUS board_GnbPcieSlotReset (UINT32 Func, UINTN Data, VOID *Confi
       {
       case AssertSlotReset:
         Data8 = Read64Mem8(GpioMmioAddr+SB_GPIO_REG25);
-        Data8 &= ~(UINT8)BIT6 ;
+        Data8 &= ~(UINT8)BIT6;
         Write64Mem8(GpioMmioAddr+SB_GPIO_REG25, Data8);   // PCIE_RST#_LAN, GPIO25
         Status = AGESA_SUCCESS;
         break;
       case DeassertSlotReset:
         Data8 = Read64Mem8(GpioMmioAddr+SB_GPIO_REG25);
-        Data8 |= BIT6 ;
+        Data8 |= BIT6;
         Write64Mem8 (GpioMmioAddr+SB_GPIO_REG25, Data8);       // PCIE_RST#_LAN, GPIO25
         Status = AGESA_SUCCESS;
         break;
@@ -186,13 +186,13 @@ static AGESA_STATUS board_GnbPcieSlotReset (UINT32 Func, UINTN Data, VOID *Confi
       {
       case AssertSlotReset:
         Data8 = Read64Mem8(GpioMmioAddr+SB_GPIO_REG02);
-        Data8 &= ~(UINT8)BIT6 ;
+        Data8 &= ~(UINT8)BIT6;
         Write64Mem8(GpioMmioAddr+SB_GPIO_REG02, Data8);   // MPCIE_RST0, GPIO02
         Status = AGESA_SUCCESS;
         break;
       case DeassertSlotReset:
         Data8 = Read64Mem8(GpioMmioAddr+SB_GPIO_REG02);
-        Data8 |= BIT6 ;
+        Data8 |= BIT6;
         Write64Mem8 (GpioMmioAddr+SB_GPIO_REG02, Data8);       // MPCIE_RST0, GPIO02
         Status = AGESA_SUCCESS;
         break;
diff --git a/src/mainboard/elmex/pcm205400/BiosCallOuts.c b/src/mainboard/elmex/pcm205400/BiosCallOuts.c
index 9a2a9bb..bf762f1 100644
--- a/src/mainboard/elmex/pcm205400/BiosCallOuts.c
+++ b/src/mainboard/elmex/pcm205400/BiosCallOuts.c
@@ -76,13 +76,13 @@ static AGESA_STATUS board_GnbPcieSlotReset (UINT32 Func, UINTN Data, VOID *Confi
 		switch (ResetInfo->ResetControl) {
 		case AssertSlotReset:
 			Data8 = Read64Mem8(GpioMmioAddr+SB_GPIO_REG50);
-			Data8 &= ~(UINT8)BIT6 ;
+			Data8 &= ~(UINT8)BIT6;
 			Write64Mem8(GpioMmioAddr+SB_GPIO_REG50, Data8);
 			Status = AGESA_SUCCESS;
 			break;
 		case DeassertSlotReset:
 			Data8 = Read64Mem8(GpioMmioAddr+SB_GPIO_REG50);
-			Data8 |= BIT6 ;
+			Data8 |= BIT6;
 			Write64Mem8 (GpioMmioAddr+SB_GPIO_REG50, Data8);
 			Status = AGESA_SUCCESS;
 			break;
diff --git a/src/mainboard/google/butterfly/mainboard.c b/src/mainboard/google/butterfly/mainboard.c
index 2c5170d..444fe4b 100644
--- a/src/mainboard/google/butterfly/mainboard.c
+++ b/src/mainboard/google/butterfly/mainboard.c
@@ -43,7 +43,7 @@ static unsigned int search(char *p, char *a, unsigned int lengthp,
 
 	/* Searching */
 	for (j = 0; j <= lengtha - lengthp; j++) {
-		for (i = 0; i < lengthp && p[i] == a[i + j]; i++) ;
+		for (i = 0; i < lengthp && p[i] == a[i + j]; i++);
 		if (i >= lengthp)
 			return j;
 	}
diff --git a/src/mainboard/google/guado/lan.c b/src/mainboard/google/guado/lan.c
index 041c3f0..6406fac 100644
--- a/src/mainboard/google/guado/lan.c
+++ b/src/mainboard/google/guado/lan.c
@@ -31,7 +31,7 @@ static unsigned int search(char *p, u8 *a, unsigned int lengthp,
 
 	/* Searching */
 	for (j = 0; j <= lengtha - lengthp; j++) {
-		for (i = 0; i < lengthp && p[i] == a[i + j]; i++) ;
+		for (i = 0; i < lengthp && p[i] == a[i + j]; i++);
 		if (i >= lengthp)
 			return j;
 	}
diff --git a/src/mainboard/google/jecht/lan.c b/src/mainboard/google/jecht/lan.c
index 651c8e6..8b0885b 100644
--- a/src/mainboard/google/jecht/lan.c
+++ b/src/mainboard/google/jecht/lan.c
@@ -31,7 +31,7 @@ static unsigned int search(char *p, u8 *a, unsigned int lengthp,
 
 	/* Searching */
 	for (j = 0; j <= lengtha - lengthp; j++) {
-		for (i = 0; i < lengthp && p[i] == a[i + j]; i++) ;
+		for (i = 0; i < lengthp && p[i] == a[i + j]; i++);
 		if (i >= lengthp)
 			return j;
 	}
diff --git a/src/mainboard/google/panther/lan.c b/src/mainboard/google/panther/lan.c
index 202d8d0..91ba184 100644
--- a/src/mainboard/google/panther/lan.c
+++ b/src/mainboard/google/panther/lan.c
@@ -31,7 +31,7 @@ static unsigned int search(char *p, u8 *a, unsigned int lengthp,
 
 	/* Searching */
 	for (j = 0; j <= lengtha - lengthp; j++) {
-		for (i = 0; i < lengthp && p[i] == a[i + j]; i++) ;
+		for (i = 0; i < lengthp && p[i] == a[i + j]; i++);
 		if (i >= lengthp)
 			return j;
 	}
diff --git a/src/mainboard/google/rikku/lan.c b/src/mainboard/google/rikku/lan.c
index e5676af..d870e0e 100644
--- a/src/mainboard/google/rikku/lan.c
+++ b/src/mainboard/google/rikku/lan.c
@@ -31,7 +31,7 @@ static unsigned int search(char *p, u8 *a, unsigned int lengthp,
 
 	/* Searching */
 	for (j = 0; j <= lengtha - lengthp; j++) {
-		for (i = 0; i < lengthp && p[i] == a[i + j]; i++) ;
+		for (i = 0; i < lengthp && p[i] == a[i + j]; i++);
 		if (i >= lengthp)
 			return j;
 	}
diff --git a/src/mainboard/google/tidus/lan.c b/src/mainboard/google/tidus/lan.c
index 7c03f6c..1514b72 100644
--- a/src/mainboard/google/tidus/lan.c
+++ b/src/mainboard/google/tidus/lan.c
@@ -31,7 +31,7 @@ static unsigned int search(char *p, u8 *a, unsigned int lengthp,
 
 	/* Searching */
 	for (j = 0; j <= lengtha - lengthp; j++) {
-		for (i = 0; i < lengthp && p[i] == a[i + j]; i++) ;
+		for (i = 0; i < lengthp && p[i] == a[i + j]; i++);
 		if (i >= lengthp)
 			return j;
 	}
diff --git a/src/mainboard/intel/eagleheights/debug.c b/src/mainboard/intel/eagleheights/debug.c
index c380795..dd97837 100644
--- a/src/mainboard/intel/eagleheights/debug.c
+++ b/src/mainboard/intel/eagleheights/debug.c
@@ -150,7 +150,7 @@ static inline void dump_spd_registers(void)
 		int i;
 		printk(BIOS_DEBUG, "\ndimm %02x", device);
 
-		for(i = 0; (i < 256) ; i++) {
+		for(i = 0; (i < 256); i++) {
 			if ((i % 16) == 0)
 				printk(BIOS_DEBUG, "\n%02x: ", i);
 			status = smbus_read_byte(device, i);
@@ -174,7 +174,7 @@ static inline void dump_ipmi_registers(void)
 		int i;
 		printk(BIOS_DEBUG, "\nipmi %02x", device);
 
-		for(i = 0; (i < 8) ; i++) {
+		for(i = 0; (i < 8); i++) {
 			status = smbus_read_byte(device, 2);
 			if (status < 0) {
 				printk(BIOS_DEBUG, "bad device: %d\n", -status);
diff --git a/src/mainboard/jetway/nf81-t56n-lf/BiosCallOuts.c b/src/mainboard/jetway/nf81-t56n-lf/BiosCallOuts.c
index 44c41fd..e3e34d3 100644
--- a/src/mainboard/jetway/nf81-t56n-lf/BiosCallOuts.c
+++ b/src/mainboard/jetway/nf81-t56n-lf/BiosCallOuts.c
@@ -79,13 +79,13 @@ static AGESA_STATUS board_GnbPcieSlotReset (UINT32 Func, UINTN Data, VOID *Confi
 		switch (ResetInfo->ResetControl) {
 		case AssertSlotReset:
 			Data8 = Read64Mem8(GpioMmioAddr+SB_GPIO_REG50);
-			Data8 &= ~(uint8_t)BIT6 ;
+			Data8 &= ~(uint8_t)BIT6;
 			Write64Mem8(GpioMmioAddr+SB_GPIO_REG50, Data8);
 			Status = AGESA_SUCCESS;
 			break;
 		case DeassertSlotReset:
 			Data8 = Read64Mem8(GpioMmioAddr+SB_GPIO_REG50);
-			Data8 |= BIT6 ;
+			Data8 |= BIT6;
 			Write64Mem8 (GpioMmioAddr+SB_GPIO_REG50, Data8);
 			Status = AGESA_SUCCESS;
 			break;
diff --git a/src/mainboard/lippert/frontrunner-af/mainboard.c b/src/mainboard/lippert/frontrunner-af/mainboard.c
index a8cf5c5..10b7504 100644
--- a/src/mainboard/lippert/frontrunner-af/mainboard.c
+++ b/src/mainboard/lippert/frontrunner-af/mainboard.c
@@ -78,7 +78,7 @@ static int smb_write_blk(u8 slave, u8 command, u8 length, const u8 *data)
 		__outbyte(SMB0_BLOCKDATA, *(data++));
 	__outbyte(SMB0_CONTROL, 0x54);		// execute block write, no IRQ
 
-	while (__inbyte(SMB0_STATUS) == 0x01) ;	// busy, no errors
+	while (__inbyte(SMB0_STATUS) == 0x01);	// busy, no errors
 	return __inbyte(SMB0_STATUS) ^ 0x02;	// 0x02 = completed, no errors
 }
 
diff --git a/src/mainboard/lippert/toucan-af/mainboard.c b/src/mainboard/lippert/toucan-af/mainboard.c
index 6b51fd2..a80c9fd 100644
--- a/src/mainboard/lippert/toucan-af/mainboard.c
+++ b/src/mainboard/lippert/toucan-af/mainboard.c
@@ -47,7 +47,7 @@ static int smb_write_blk(u8 slave, u8 command, u8 length, const u8 *data)
 		__outbyte(SMB0_BLOCKDATA, *(data++));
 	__outbyte(SMB0_CONTROL, 0x54);		// execute block write, no IRQ
 
-	while (__inbyte(SMB0_STATUS) == 0x01) ;	// busy, no errors
+	while (__inbyte(SMB0_STATUS) == 0x01);	// busy, no errors
 	return __inbyte(SMB0_STATUS) ^ 0x02;	// 0x02 = completed, no errors
 }
 



More information about the coreboot-gerrit mailing list