summaryrefslogtreecommitdiff
path: root/drivers/mtd/mtdblock.c
diff options
context:
space:
mode:
authorhuijin.park <huijin.park@samsung.com>2018-11-29 07:19:51 +0300
committerBoris Brezillon <boris.brezillon@bootlin.com>2018-12-03 13:32:26 +0300
commitbafae53817e7f3a47ed74cd03152e166aa639131 (patch)
treecb01bea50eb502dd4d93e4d9d9ef0b45eeb7eff8 /drivers/mtd/mtdblock.c
parent6750f61a13a0197c40e4a40739117493b15f19e8 (diff)
downloadlinux-bafae53817e7f3a47ed74cd03152e166aa639131.tar.xz
mtd: change len type from signed to unsigned type
Callers of erase_write() always pass an unsigned int. So this patch avoids a cast to an int. Signed-off-by: huijin.park <huijin.park@samsung.com> Reviewed-by: Miquel Raynal <miquel.raynal@bootlin.com> Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
Diffstat (limited to 'drivers/mtd/mtdblock.c')
-rw-r--r--drivers/mtd/mtdblock.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/mtdblock.c b/drivers/mtd/mtdblock.c
index a5b1933c0490..b2d5ed1cbc94 100644
--- a/drivers/mtd/mtdblock.c
+++ b/drivers/mtd/mtdblock.c
@@ -56,7 +56,7 @@ struct mtdblk_dev {
*/
static int erase_write (struct mtd_info *mtd, unsigned long pos,
- int len, const char *buf)
+ unsigned int len, const char *buf)
{
struct erase_info erase;
size_t retlen;