Skip to content

Commit

Permalink
mtd: bcm63xxpart: move the last curpart++ to its correct place
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jonas Gorski authored and Artem Bityutskiy committed Nov 21, 2012
1 parent 4e4fb63 commit f3f9a5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/mtd/bcm63xxpart.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit f3f9a5d

Please sign in to comment.