Skip to content

Commit

Permalink
[MTD] Fix do_div() type warning in mtdconcat
Browse files Browse the repository at this point in the history
It expects a uint64_t; give it one.

Signed-off-by: David Woodhouse <dwmw2@infradead.org>
  • Loading branch information
David Woodhouse committed Jul 23, 2007
1 parent e733450 commit 0bf9733
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/mtd/mtdconcat.c
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ concat_writev(struct mtd_info *mtd, const struct kvec *vecs,

/* Check alignment */
if (mtd->writesize > 1) {
loff_t __to = to;
uint64_t __to = to;
if (do_div(__to, mtd->writesize) || (total_len % mtd->writesize))
return -EINVAL;
}
Expand Down

0 comments on commit 0bf9733

Please sign in to comment.