* [PATCH v3] mtd: change len type from signed to unsigned type
[not found] <CGME20181129042000eucas1p19a67f367e084ed5d5f37f72e57eb98d5@eucas1p1.samsung.com>
@ 2018-11-29 4:19 ` Huijin Park
2018-12-03 7:51 ` [v3] " Boris Brezillon
0 siblings, 1 reply; 2+ messages in thread
From: Huijin Park @ 2018-11-29 4:19 UTC (permalink / raw)
To: Boris Brezillon
Cc: Marek Vasut, linux-mtd, linux-kernel, Huijin Park, bbanghj.park,
Miquel Raynal
From: "huijin.park" <huijin.park@samsung.com>
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>
---
Changes since v1:
* Made commit message more clear.
Changes since v2:
* Made commit message more clear.
---
drivers/mtd/mtdblock.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/mtd/mtdblock.c b/drivers/mtd/mtdblock.c
index a5b1933..b2d5ed1 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;
--
1.7.9.5
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [v3] mtd: change len type from signed to unsigned type
2018-11-29 4:19 ` [PATCH v3] mtd: change len type from signed to unsigned type Huijin Park
@ 2018-12-03 7:51 ` Boris Brezillon
0 siblings, 0 replies; 2+ messages in thread
From: Boris Brezillon @ 2018-12-03 7:51 UTC (permalink / raw)
To: Huijin Park, Boris Brezillon
Cc: linux-kernel, Marek Vasut, linux-mtd, Miquel Raynal, bbanghj.park
On Thu, 2018-11-29 at 04:19:51 UTC, Huijin Park wrote:
> From: "huijin.park" <huijin.park@samsung.com>
>
> 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>
Applied to http://git.infradead.org/linux-mtd.git mtd/next, thanks.
Boris
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-12-03 7:51 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <CGME20181129042000eucas1p19a67f367e084ed5d5f37f72e57eb98d5@eucas1p1.samsung.com>
2018-11-29 4:19 ` [PATCH v3] mtd: change len type from signed to unsigned type Huijin Park
2018-12-03 7:51 ` [v3] " Boris Brezillon
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.