[brcm63xx] nb4: fix support, add support for SVC and CLIP BTN
[openwrt/svn-archive/archive.git] / target / linux / brcm63xx / patches-3.3 / 101-MTD-bcm63xxpart-remove-unused-variable.patch
1 From 2962bbe9cc807549c0705551c5b7be47e34e3fac Mon Sep 17 00:00:00 2001
2 From: Jonas Gorski <jonas.gorski@gmail.com>
3 Date: Mon, 30 Apr 2012 09:32:56 +0200
4 Subject: [PATCH 20/79] MTD: bcm63xxpart: remove unused variable
5
6 namelen is never used, so drop it.
7
8 Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
9 ---
10 drivers/mtd/bcm63xxpart.c | 11 +++--------
11 1 file changed, 3 insertions(+), 8 deletions(-)
12
13 --- a/drivers/mtd/bcm63xxpart.c
14 +++ b/drivers/mtd/bcm63xxpart.c
15 @@ -79,7 +79,6 @@ static int bcm63xx_parse_cfe_partitions(
16 unsigned int rootfsaddr, kerneladdr, spareaddr;
17 unsigned int rootfslen, kernellen, sparelen, totallen;
18 unsigned int cfelen, nvramlen;
19 - int namelen = 0;
20 int i;
21 u32 computed_crc;
22 bool rootfs_first = false;
23 @@ -143,15 +142,11 @@ static int bcm63xx_parse_cfe_partitions(
24 }
25
26 /* Determine number of partitions */
27 - namelen = 8;
28 - if (rootfslen > 0) {
29 + if (rootfslen > 0)
30 nrparts++;
31 - namelen += 6;
32 - }
33 - if (kernellen > 0) {
34 +
35 + if (kernellen > 0)
36 nrparts++;
37 - namelen += 6;
38 - }
39
40 /* Ask kernel for more memory */
41 parts = kzalloc(sizeof(*parts) * nrparts + 10 * nrparts, GFP_KERNEL);