mirror of
https://review.coreboot.org/flashrom.git
synced 2025-07-01 14:11:15 +02:00
Random whitespace and coding-style fixes
Also, indentation fixes, e.g. due to conversion to msg_*, use ARRAY_SIZE where possible, wrap overly long line, etc. Compile-tested. There should be no functional changes. Corresponding to flashrom svn r1397. Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de> Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
This commit is contained in:
2
ichspi.c
2
ichspi.c
@ -362,7 +362,7 @@ static uint8_t lookup_spi_type(uint8_t opcode)
|
||||
{
|
||||
int a;
|
||||
|
||||
for (a = 0; a < sizeof(POSSIBLE_OPCODES)/sizeof(POSSIBLE_OPCODES[0]); a++) {
|
||||
for (a = 0; a < ARRAY_SIZE(POSSIBLE_OPCODES); a++) {
|
||||
if (POSSIBLE_OPCODES[a].opcode == opcode)
|
||||
return POSSIBLE_OPCODES[a].spi_type;
|
||||
}
|
||||
|
Reference in New Issue
Block a user