mtd: partitions: fixup some allocate_partition() whitespace
PATCH 1/1 mtd: partitions: fixup some allocate_partition() whitespace
Some recent patches caused churn around this area, and checkpatch noticed the existing issues.
Signed-off-by Brian Norris <[email protected]>
--- drivers/mtd/mtdpart.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/mtd/mtdpart.c +3 -3
@@ -402,7 +402,7 @@ static struct mtd_part *allocate_partition(struct mtd_info *parent, const struct mtd_partition *part, int partno, 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;struct mtd_part *slave;u32 remainder;
@@ -480,8 +480,8 @@ static struct mtd_part *allocate_partition(struct mtd_info *parent, slave->mtd._sync = part_sync;if (!partno && !parent->dev.class && parent->_suspend && parent->_resume) { - slave->mtd._suspend = part_suspend; - slave->mtd._resume = part_resume; + slave->mtd._suspend = part_suspend; + slave->mtd._resume = part_resume; }if (parent->_writev) slave->mtd._writev = part_writev;
Signature · 1 line
2.13.1.611.g7e3b11ae1-goog
Quoted 4 lines · Brian Norris
Some recent patches caused churn around this area, and checkpatch noticed the existing issues.
Signed-off-by Brian Norris <[email protected]>
Looks OK obviously, thanks for taking care of this.
Brian Norris
AppliedQuoted 7 lines · Rafał Miłecki
Quoted 4 lines · Brian Norris
Some recent patches caused churn around this area, and checkpatch noticed the existing issues.
Signed-off-by Brian Norris <[email protected]>Looks OK obviously, thanks for taking care of this.
I'll consider that a "review", as this is so trivial :)
Applied to l2-mtd.git