Root/target/linux/brcm63xx/patches-3.3/104-MTD-bcm63xxpart-move-the-last-curpart-to-its-correct.patch

1From d5173b2c806f4039679b001f1b55a3c245afdf68 Mon Sep 17 00:00:00 2001
2From: Jonas Gorski <jonas.gorski@gmail.com>
3Date: Tue, 8 May 2012 10:02:13 +0200
4Subject: [PATCH 23/79] MTD: bcm63xxpart: move the last curpart++ to its
5 correct place
6
7The line belongs above the comment, not below it.
8
9Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
10---
11 drivers/mtd/bcm63xxpart.c | 2 +-
12 1 file changed, 1 insertion(+), 1 deletion(-)
13
14--- a/drivers/mtd/bcm63xxpart.c
15+++ b/drivers/mtd/bcm63xxpart.c
16@@ -190,9 +190,9 @@ static int bcm63xx_parse_cfe_partitions(
17     parts[curpart].name = "nvram";
18     parts[curpart].offset = master->size - nvramlen;
19     parts[curpart].size = nvramlen;
20+ curpart++;
21 
22     /* Global partition "linux" to make easy firmware upgrade */
23- curpart++;
24     parts[curpart].name = "linux";
25     parts[curpart].offset = cfelen;
26     parts[curpart].size = master->size - cfelen - nvramlen;
27

Archive Download this file



interactive