Patchwork [4/5] MTD: bcm63xxpart: move the last curpart++ to its correct place

login
register
mail settings
Submitter Jonas Gorski
Date Nov. 12, 2012, 9:52 a.m.
Message ID <1352713971-1685-5-git-send-email-jonas.gorski@gmail.com>
Download mbox | patch
Permalink /patch/198350/
State New
Headers show

Comments

Jonas Gorski - Nov. 12, 2012, 9:52 a.m.
The line belongs above the comment, not below it.

Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
---
 drivers/mtd/bcm63xxpart.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Patch

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;