From: Jonas Gorski Date: Mon, 12 Nov 2012 09:52:50 +0000 (+0100) Subject: mtd: bcm63xxpart: move the last curpart++ to its correct place X-Git-Tag: v3.8-rc1~47^2~42 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f3f9a5dac79880af9a27f520fbeff11314ef9dde;p=thirdparty%2Fkernel%2Flinux.git mtd: bcm63xxpart: move the last curpart++ to its correct place The line belongs above the comment, not below it. Signed-off-by: Jonas Gorski Reviewed-by: Florian Fainelli Signed-off-by: Artem Bityutskiy --- diff --git a/drivers/mtd/bcm63xxpart.c b/drivers/mtd/bcm63xxpart.c index b3db8e35a2365..44cba4eba34c3 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;