Commit c169e3d3 authored by Brian Norris's avatar Brian Norris

mtd: partitions: fixup some allocate_partition() whitespace

Some recent patches caused churn around this area, and checkpatch
noticed the existing issues.
Signed-off-by: default avatarBrian Norris <computersforpeace@gmail.com>
parent 58de51ca
...@@ -402,7 +402,7 @@ static struct mtd_part *allocate_partition(struct mtd_info *parent, ...@@ -402,7 +402,7 @@ static struct mtd_part *allocate_partition(struct mtd_info *parent,
const struct mtd_partition *part, int partno, const struct mtd_partition *part, int partno,
uint64_t cur_offset) uint64_t cur_offset)
{ {
int wr_alignment = (parent->flags & MTD_NO_ERASE) ? parent->writesize: int wr_alignment = (parent->flags & MTD_NO_ERASE) ? parent->writesize :
parent->erasesize; parent->erasesize;
struct mtd_part *slave; struct mtd_part *slave;
u32 remainder; u32 remainder;
...@@ -480,8 +480,8 @@ static struct mtd_part *allocate_partition(struct mtd_info *parent, ...@@ -480,8 +480,8 @@ static struct mtd_part *allocate_partition(struct mtd_info *parent,
slave->mtd._sync = part_sync; slave->mtd._sync = part_sync;
if (!partno && !parent->dev.class && parent->_suspend && if (!partno && !parent->dev.class && parent->_suspend &&
parent->_resume) { parent->_resume) {
slave->mtd._suspend = part_suspend; slave->mtd._suspend = part_suspend;
slave->mtd._resume = part_resume; slave->mtd._resume = part_resume;
} }
if (parent->_writev) if (parent->_writev)
slave->mtd._writev = part_writev; slave->mtd._writev = part_writev;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment