From: huijin.park Date: Thu, 29 Nov 2018 04:19:51 +0000 (-0500) Subject: mtd: change len type from signed to unsigned type X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=bafae53817e7f3a47ed74cd03152e166aa639131;p=openwrt%2Fstaging%2Fblogic.git 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 Reviewed-by: Miquel Raynal Signed-off-by: Boris Brezillon --- 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;