提交 6ae9c1c8 编写于 作者: J Jonas Gorski 提交者: David Woodhouse

mtd: maps: bcm963xx-flash: remove superfluous semicolons

Signed-off-by: NJonas Gorski <jonas.gorski@gmail.com>
Acked-by: NFlorian Fainelli <florian@openwrt.org>
Signed-off-by: NArtem Bityutskiy <Artem.Bityutskiy@linux.intel.com>
Signed-off-by: NDavid Woodhouse <David.Woodhouse@intel.com>
上级 35096cb5
......@@ -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";
......@@ -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";
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册