mtd: cmdlinepart: Update comment for introduction of OFFSET_CONTINUOUS
authorGeert Uytterhoeven <geert+renesas@glider.be>
Tue, 22 May 2018 15:07:53 +0000 (17:07 +0200)
committerBoris Brezillon <boris.brezillon@bootlin.com>
Wed, 23 May 2018 08:08:48 +0000 (10:08 +0200)
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: b175d03dd2072836 ("[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>
drivers/mtd/cmdlinepart.c

index fbd5affc0acfe3fe410b5193d8bee8c40884e10f..3ea44cff9b759e3c3fdf6a1680ae70f27af3da57 100644 (file)
@@ -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;