summaryrefslogtreecommitdiff
path: root/drivers/mtd/nand/denali_spl.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/mtd/nand/denali_spl.c')
-rw-r--r--drivers/mtd/nand/denali_spl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/nand/denali_spl.c b/drivers/mtd/nand/denali_spl.c
index 65fdde8..e98f537 100644
--- a/drivers/mtd/nand/denali_spl.c
+++ b/drivers/mtd/nand/denali_spl.c
@@ -203,7 +203,7 @@ int nand_spl_load_image(uint32_t offs, unsigned int size, void *dst)
if (ret < 0)
return ret;
- readlen = min(page_size - column, size);
+ readlen = min(page_size - column, (int)size);
memcpy(dst, page_buffer, readlen);
column = 0;