OSDN Git Service

mtd: change len type from signed to unsigned type
authorhuijin.park <huijin.park@samsung.com>
Thu, 29 Nov 2018 04:19:51 +0000 (23:19 -0500)
committerBoris Brezillon <boris.brezillon@bootlin.com>
Mon, 3 Dec 2018 10:32:26 +0000 (11:32 +0100)
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>
drivers/mtd/mtdblock.c

index a5b1933..b2d5ed1 100644 (file)
@@ -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;