From patchwork Mon Nov 12 09:52:50 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [4/5] MTD: bcm63xxpart: move the last curpart++ to its correct place Date: Sun, 11 Nov 2012 23:52:50 -0000 From: Jonas Gorski X-Patchwork-Id: 198350 Message-Id: <1352713971-1685-5-git-send-email-jonas.gorski@gmail.com> To: linux-mtd@lists.infradead.org Cc: Maxime Bizon , Kevin Cernekee , David Woodhouse , Florian Fainelli , Artem Bityutskiy The line belongs above the comment, not below it. Signed-off-by: Jonas Gorski --- drivers/mtd/bcm63xxpart.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/mtd/bcm63xxpart.c b/drivers/mtd/bcm63xxpart.c index b3db8e3..44cba4e 100644 --- a/drivers/mtd/bcm63xxpart.c +++ b/drivers/mtd/bcm63xxpart.c @@ -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;