diff options
author | 2018-11-28 23:19:51 -0500 | |
---|---|---|
committer | 2018-12-03 11:32:26 +0100 | |
commit | bafae53817e7f3a47ed74cd03152e166aa639131 (patch) | |
tree | cb01bea50eb502dd4d93e4d9d9ef0b45eeb7eff8 /drivers/mtd/mtdblock.c | |
parent | mtd: improve calculating partition boundaries when checking for alignment (diff) | |
download | linux-bafae53817e7f3a47ed74cd03152e166aa639131.tar.gz linux-bafae53817e7f3a47ed74cd03152e166aa639131.tar.bz2 linux-bafae53817e7f3a47ed74cd03152e166aa639131.zip |
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.c | 2 |
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; |