summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorElyes HAOUAS <ehaouas@noos.fr>2019-04-23 22:16:30 +0200
committerPatrick Georgi <pgeorgi@google.com>2019-04-25 15:55:10 +0000
commit6ee9ee4cab5bb47f660234400393ac8d2ef50998 (patch)
treecb86d5531f07e13975dda19c31ae62c855afd2d1 /src
parent05c04556990c74f7d4f3303c33be2c43c3051e20 (diff)
downloadcoreboot-6ee9ee4cab5bb47f660234400393ac8d2ef50998.tar.xz
drivers/spi/sst: Remove unused variables
Change-Id: Ic6eb9c7dbfc5fde97f0f45f09431c617cb850c38 Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/c/coreboot/+/32429 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Diffstat (limited to 'src')
-rw-r--r--src/drivers/spi/sst.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/drivers/spi/sst.c b/src/drivers/spi/sst.c
index 71bdac72a2..e4ea7805dd 100644
--- a/src/drivers/spi/sst.c
+++ b/src/drivers/spi/sst.c
@@ -187,7 +187,7 @@ sst_byte_write(const struct spi_flash *flash, u32 offset, const void *buf)
static int sst_write_256(const struct spi_flash *flash, u32 offset, size_t len,
const void *buf)
{
- size_t actual, chunk_len, cmd_len;
+ size_t actual, chunk_len;
unsigned long byte_addr;
unsigned long page_size;
int ret = 0;
@@ -208,7 +208,6 @@ static int sst_write_256(const struct spi_flash *flash, u32 offset, size_t len,
if (ret)
goto done;
- cmd_len = 4;
cmd[0] = CMD_SST_AAI_WP;
cmd[1] = offset >> 16;
cmd[2] = offset >> 8;