mtd: partitions: fixup some allocate_partition() whitespace

Linux-MTD Mailing List linux-mtd at lists.infradead.org
Thu Jul 13 10:59:06 PDT 2017


Gitweb:     http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=c169e3d3c049d93929a92f909a4b80ba0f85a3c3
Commit:     c169e3d3c049d93929a92f909a4b80ba0f85a3c3
Parent:     58de51ca77e2166262b043b0ff93290b184a2364
Author:     Brian Norris <computersforpeace at gmail.com>
AuthorDate: Thu Jun 22 14:09:18 2017 -0700
Committer:  Brian Norris <computersforpeace at gmail.com>
CommitDate: Fri Jun 23 10:52:15 2017 -0700

    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 <computersforpeace at gmail.com>
---
 drivers/mtd/mtdpart.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/mtd/mtdpart.c b/drivers/mtd/mtdpart.c
index 2ad9493..5736b0c 100644
--- a/drivers/mtd/mtdpart.c
+++ b/drivers/mtd/mtdpart.c
@@ -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;



More information about the linux-mtd-cvs mailing list