Skip to content

Commit 34c8190

Browse files
geertuBoris Brezillon
authored andcommitted
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: b175d03 ("[PATCH] mtd cmdlinepart: allow zero offset value") Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
1 parent cf589ce commit 34c8190

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

drivers/mtd/cmdlinepart.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,10 @@ static struct mtd_partition * newpart(char *s,
190190
extra_mem = (unsigned char *)(parts + *num_parts);
191191
}
192192

193-
/* enter this partition (offset will be calculated later if it is zero at this point) */
193+
/*
194+
* enter this partition (offset will be calculated later if it is
195+
* OFFSET_CONTINUOUS at this point)
196+
*/
194197
parts[this_part].size = size;
195198
parts[this_part].offset = offset;
196199
parts[this_part].mask_flags = mask_flags;

0 commit comments

Comments
 (0)