Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0bf9733d authored by David Woodhouse's avatar David Woodhouse
Browse files

[MTD] Fix do_div() type warning in mtdconcat



It expects a uint64_t; give it one.

Signed-off-by: default avatarDavid Woodhouse <dwmw2@infradead.org>
parent e733450b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
	}