Skip to content
Snippets Groups Projects
Commit 94991d83 authored by Edward O'Callaghan's avatar Edward O'Callaghan Committed by Edward O'Callaghan
Browse files

lspcon_i2c_spi.c: Trivial style fix


Change-Id: I0675b467d7b0d24626a336033668bf80bfeeb815
Signed-off-by: default avatarEdward O'Callaghan <quasisec@google.com>
Reviewed-on: https://review.coreboot.org/c/flashrom/+/40679


Tested-by: default avatarbuild bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: default avatarAngel Pons <th3fanbus@gmail.com>
Reviewed-by: default avatarHAOUAS Elyes <ehaouas@noos.fr>
parent 552e60e5
No related branches found
No related tags found
No related merge requests found
...@@ -151,7 +151,7 @@ static int lspcon_i2c_spi_wait_command_done(int fd, unsigned int offset, int mas ...@@ -151,7 +151,7 @@ static int lspcon_i2c_spi_wait_command_done(int fd, unsigned int offset, int mas
int ret = 0; int ret = 0;
do { do {
ret |= lspcon_i2c_spi_read_register(fd, offset, &val); ret |= lspcon_i2c_spi_read_register(fd, offset, &val);
} while(!ret && (val & mask) && ++tried < MAX_SPI_WAIT_RETRIES); } while (!ret && (val & mask) && ++tried < MAX_SPI_WAIT_RETRIES);
if (tried == MAX_SPI_WAIT_RETRIES) { if (tried == MAX_SPI_WAIT_RETRIES) {
msg_perr("Error: Time out on sending command.\n"); msg_perr("Error: Time out on sending command.\n");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment