Skip to contentSkip to conversation

mtd: partitions: fixup some allocate_partition() whitespace

PATCH In review Brian Norris 2 participants 3 messages Jun 22, 2017 – Jun 23, 2017 Memory technology devices (MTD)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mtd: partitions: fixup some allocate_partition() whitespace

Some recent patches caused churn around this area, and checkpatch noticed the existing issues.

---
 drivers/mtd/mtdpart.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/mtd/mtdpart.c +3 -3
index 2ad9493703f9..5736b0c90b33 100644
@@ -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
author Applied
#2 lore raw
Quoted 7 lines · Rafał Miłecki
Quoted 4 lines · Brian Norris

Some recent patches caused churn around this area, and checkpatch noticed the existing issues.

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