mtd: bcm63xxpart: move the last curpart++ to its correct place
authorJonas Gorski <jonas.gorski@gmail.com>
Mon, 12 Nov 2012 09:52:50 +0000 (10:52 +0100)
committerArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
Wed, 21 Nov 2012 15:15:05 +0000 (17:15 +0200)
The line belongs above the comment, not below it.

Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
Reviewed-by: Florian Fainelli <florian@openwrt.org>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
drivers/mtd/bcm63xxpart.c

index b3db8e35a23657a005cfe3fcb61c32fe12870d2b..44cba4eba34c370a5937ec83ed69069b196a0e13 100644 (file)
@@ -190,9 +190,9 @@ static int bcm63xx_parse_cfe_partitions(struct mtd_info *master,
        parts[curpart].name = "nvram";
        parts[curpart].offset = master->size - nvramlen;
        parts[curpart].size = nvramlen;
+       curpart++;
 
        /* Global partition "linux" to make easy firmware upgrade */
-       curpart++;
        parts[curpart].name = "linux";
        parts[curpart].offset = cfelen;
        parts[curpart].size = master->size - cfelen - nvramlen;