summaryrefslogtreecommitdiff
path: root/src/drivers/net/ne2k.c
diff options
context:
space:
mode:
authorElyes Haouas <ehaouas@noos.fr>2023-08-13 12:47:36 +0200
committerElyes Haouas <ehaouas@noos.fr>2023-09-09 04:44:44 +0000
commit25a7af18a5e789a7930015ab08d72ea62f5be71a (patch)
treef7d3424e4b6ef1e3fd1569b6853babf6ca1d75f9 /src/drivers/net/ne2k.c
parentcbe975d8d847d356ee870807f3b57c2cb0dc59da (diff)
drivers/net/ne2k: Remove space before semicolon
Also move the semicolon on next line. Change-Id: I68412407ec8c8f99c15f39b0ec08d4fb33eb1b3f Signed-off-by: Elyes Haouas <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/c/coreboot/+/77155 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Eric Lai <eric_lai@quanta.corp-partner.google.com>
Diffstat (limited to 'src/drivers/net/ne2k.c')
-rw-r--r--src/drivers/net/ne2k.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/drivers/net/ne2k.c b/src/drivers/net/ne2k.c
index e0dc58b440..589ec4c34f 100644
--- a/src/drivers/net/ne2k.c
+++ b/src/drivers/net/ne2k.c
@@ -130,10 +130,10 @@ static void str2mac(const char *str, unsigned char *mac)
acc += (c - '0');
} else if ((c >= 'a') && (c <= 'f')) {
acc *= 16;
- acc += ((c - 'a') + 10) ;
+ acc += ((c - 'a') + 10);
} else if ((c >= 'A') && (c <= 'F')) {
acc *= 16;
- acc += ((c - 'A') + 10) ;
+ acc += ((c - 'A') + 10);
} else {
*mac++ = acc;
acc = 0;
@@ -216,7 +216,8 @@ void ne2k_transmit(unsigned int eth_nic_base)
outb(D8390_COMMAND_PS0 | D8390_COMMAND_TXP | D8390_COMMAND_RD2 | D8390_COMMAND_STA, eth_nic_base + D8390_P0_COMMAND);
/* wait for operation finish */
- while ((inb(eth_nic_base + D8390_P0_ISR) & D8390_ISR_PTX) != D8390_ISR_PTX) ;
+ while ((inb(eth_nic_base + D8390_P0_ISR) & D8390_ISR_PTX) != D8390_ISR_PTX)
+ ;
set_count(eth_nic_base, 0);
}