Commit bafae538 authored by huijin.park's avatar huijin.park Committed by Boris Brezillon

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: default avatarhuijin.park <huijin.park@samsung.com>
Reviewed-by: default avatarMiquel Raynal <miquel.raynal@bootlin.com>
Signed-off-by: default avatarBoris Brezillon <boris.brezillon@bootlin.com>
parent 6750f61a
...@@ -56,7 +56,7 @@ struct mtdblk_dev { ...@@ -56,7 +56,7 @@ struct mtdblk_dev {
*/ */
static int erase_write (struct mtd_info *mtd, unsigned long pos, 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; struct erase_info erase;
size_t retlen; size_t retlen;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment