Skip to content

Commit

Permalink
mtd: maps: bcm963xx-flash: remove superfluous semicolons
Browse files Browse the repository at this point in the history
Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
Acked-by: Florian Fainelli <florian@openwrt.org>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@linux.intel.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
  • Loading branch information
Jonas Gorski authored and David Woodhouse committed Jan 9, 2012
1 parent 35096cb commit 6ae9c1c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions drivers/mtd/maps/bcm963xx-flash.c
Original file line number Diff line number Diff line change
Expand Up @@ -94,18 +94,18 @@ static int parse_cfe_partitions(struct mtd_info *master,
if (rootfslen > 0) {
nrparts++;
namelen += 6;
};
}
if (kernellen > 0) {
nrparts++;
namelen += 6;
};
}

/* Ask kernel for more memory */
parts = kzalloc(sizeof(*parts) * nrparts + 10 * nrparts, GFP_KERNEL);
if (!parts) {
vfree(buf);
return -ENOMEM;
};
}

/* Start building partition list */
parts[curpart].name = "CFE";
Expand All @@ -118,7 +118,7 @@ static int parse_cfe_partitions(struct mtd_info *master,
parts[curpart].offset = kerneladdr;
parts[curpart].size = kernellen;
curpart++;
};
}

if (rootfslen > 0) {
parts[curpart].name = "rootfs";
Expand All @@ -127,7 +127,7 @@ static int parse_cfe_partitions(struct mtd_info *master,
if (sparelen > 0)
parts[curpart].size += sparelen;
curpart++;
};
}

parts[curpart].name = "nvram";
parts[curpart].offset = master->size - master->erasesize;
Expand Down

0 comments on commit 6ae9c1c

Please sign in to comment.