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>
This commit is contained in:
Elyes Haouas 2023-08-13 12:47:36 +02:00
parent cbe975d8d8
commit 25a7af18a5
1 changed files with 4 additions and 3 deletions

View File

@ -130,10 +130,10 @@ static void str2mac(const char *str, unsigned char *mac)
acc += (c - '0'); acc += (c - '0');
} else if ((c >= 'a') && (c <= 'f')) { } else if ((c >= 'a') && (c <= 'f')) {
acc *= 16; acc *= 16;
acc += ((c - 'a') + 10) ; acc += ((c - 'a') + 10);
} else if ((c >= 'A') && (c <= 'F')) { } else if ((c >= 'A') && (c <= 'F')) {
acc *= 16; acc *= 16;
acc += ((c - 'A') + 10) ; acc += ((c - 'A') + 10);
} else { } else {
*mac++ = acc; *mac++ = acc;
acc = 0; 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); outb(D8390_COMMAND_PS0 | D8390_COMMAND_TXP | D8390_COMMAND_RD2 | D8390_COMMAND_STA, eth_nic_base + D8390_P0_COMMAND);
/* wait for operation finish */ /* 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); set_count(eth_nic_base, 0);
} }