diff options
author | Elyes HAOUAS <ehaouas@noos.fr> | 2019-05-29 13:47:43 +0200 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2019-09-02 14:06:13 +0000 |
commit | 3647920722a1c6abc06be4d802efe835f0a7775e (patch) | |
tree | 1b69f6f5dee67899cef77f54493fbeaf39ae3027 /src/soc/intel | |
parent | 0a19f1df098f60448fdf7330a5ec5d9f95dd54a4 (diff) |
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>
Diffstat (limited to 'src/soc/intel')
-rw-r--r-- | src/soc/intel/quark/i2c.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/soc/intel/quark/i2c.c b/src/soc/intel/quark/i2c.c index bb1a26437f..b09852bc3f 100644 --- a/src/soc/intel/quark/i2c.c +++ b/src/soc/intel/quark/i2c.c @@ -118,7 +118,6 @@ static int platform_i2c_read(uint32_t restart, uint8_t *rx_buffer, int length, int bytes_transferred; uint32_t cmd; int fifo_bytes; - uint8_t junk; I2C_REGS *regs; uint32_t status; @@ -129,7 +128,7 @@ static int platform_i2c_read(uint32_t restart, uint8_t *rx_buffer, int length, /* Empty the FIFO */ status = regs->ic_status; while (status & IC_STATUS_RFNE) { - junk = (uint8_t)regs->ic_data_cmd; + (void)regs->ic_data_cmd; status = regs->ic_status; } |