summaryrefslogtreecommitdiffstats
path: root/drivers/mtd
diff options
context:
space:
mode:
authorLee Jones <lee.jones@linaro.org>2014-12-15 11:59:12 +0000
committerBrian Norris <computersforpeace@gmail.com>2015-01-12 21:08:10 -0800
commita9b679bfd2820f59a0d914dad148f1fb09d3084a (patch)
tree7fbdcfc1385f1cc2bb02fb0066d82fc4b219960f /drivers/mtd
parent69d5af8d016c803420258a476789ec6e7e7844dc (diff)
downloadop-kernel-dev-a9b679bfd2820f59a0d914dad148f1fb09d3084a.zip
op-kernel-dev-a9b679bfd2820f59a0d914dad148f1fb09d3084a.tar.gz
mtd: st_spi_fsm: Fix [-Wsign-compare] build warning
drivers/mtd/devices/st_spi_fsm.c:1647:17: warning: comparison between signed and unsigned integer expressions Signed-off-by: Lee Jones <lee.jones@linaro.org> Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Diffstat (limited to 'drivers/mtd')
-rw-r--r--drivers/mtd/devices/st_spi_fsm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/devices/st_spi_fsm.c b/drivers/mtd/devices/st_spi_fsm.c
index 3451864..3060025 100644
--- a/drivers/mtd/devices/st_spi_fsm.c
+++ b/drivers/mtd/devices/st_spi_fsm.c
@@ -1586,11 +1586,11 @@ static int stfsm_write(struct stfsm *fsm, const uint8_t *buf,
uint32_t size_lb;
uint32_t size_mop;
uint32_t tmp[4];
+ uint32_t i;
uint32_t page_buf[FLASH_PAGESIZE_32];
uint8_t *t = (uint8_t *)&tmp;
const uint8_t *p;
int ret;
- int i;
dev_dbg(fsm->dev, "writing %d bytes to 0x%08x\n", size, offset);
OpenPOWER on IntegriCloud