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

Commit 34c81907 authored by Geert Uytterhoeven's avatar Geert Uytterhoeven Committed by Boris Brezillon
Browse files

mtd: cmdlinepart: Update comment for introduction of OFFSET_CONTINUOUS



The comment about offset zero was not updated when changing behavior:
  - Automatic offset calculation is indicated by OFFSET_CONTINUOUS,
  - Zero really means offset zero.

Fixes: b175d03d ("[PATCH] mtd cmdlinepart: allow zero offset value")
Signed-off-by: default avatarGeert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: default avatarBoris Brezillon <boris.brezillon@bootlin.com>
parent cf589ce7
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -190,7 +190,10 @@ static struct mtd_partition * newpart(char *s,
		extra_mem = (unsigned char *)(parts + *num_parts);
	}

	/* enter this partition (offset will be calculated later if it is zero at this point) */
	/*
	 * enter this partition (offset will be calculated later if it is
	 * OFFSET_CONTINUOUS at this point)
	 */
	parts[this_part].size = size;
	parts[this_part].offset = offset;
	parts[this_part].mask_flags = mask_flags;