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>
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";
parts[curpart].offset = kerneladdr;
parts[curpart].size = kernellen;
curpart++;
- };
+ }
if (rootfslen > 0) {
parts[curpart].name = "rootfs";
if (sparelen > 0)
parts[curpart].size += sparelen;
curpart++;
- };
+ }
parts[curpart].name = "nvram";
parts[curpart].offset = master->size - master->erasesize;