mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00
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 <huijin.park@samsung.com> Reviewed-by: Miquel Raynal <miquel.raynal@bootlin.com> Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
This commit is contained in:
parent
6750f61a13
commit
bafae53817
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue