soc/intel/quark: Remove variable set but not used

Change-Id: I09292c2776309982cfb4d72012991bf7725b75fb
Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/32912
Reviewed-by: Patrick Georgi <pgeorgi@google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
Elyes HAOUAS 2019-05-29 13:47:43 +02:00 committed by Patrick Georgi
parent 0a19f1df09
commit 3647920722
1 changed files with 1 additions and 2 deletions

View File

@ -118,7 +118,6 @@ static int platform_i2c_read(uint32_t restart, uint8_t *rx_buffer, int length,
int bytes_transferred; int bytes_transferred;
uint32_t cmd; uint32_t cmd;
int fifo_bytes; int fifo_bytes;
uint8_t junk;
I2C_REGS *regs; I2C_REGS *regs;
uint32_t status; uint32_t status;
@ -129,7 +128,7 @@ static int platform_i2c_read(uint32_t restart, uint8_t *rx_buffer, int length,
/* Empty the FIFO */ /* Empty the FIFO */
status = regs->ic_status; status = regs->ic_status;
while (status & IC_STATUS_RFNE) { while (status & IC_STATUS_RFNE) {
junk = (uint8_t)regs->ic_data_cmd; (void)regs->ic_data_cmd;
status = regs->ic_status; status = regs->ic_status;
} }