projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6750f61
)
mtd: change len type from signed to unsigned type
author
huijin.park
<huijin.park@samsung.com>
Thu, 29 Nov 2018 04:19:51 +0000
(23:19 -0500)
committer
Boris 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
patch
|
blob
|
history
diff --git
a/drivers/mtd/mtdblock.c
b/drivers/mtd/mtdblock.c
index a5b1933c0490946d3c328f13074865af10718f19..b2d5ed1cbc94a670bff86f3e9a78d131002d8014 100644
(file)
--- 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;