[<prev] [next>] [day] [month] [year] [list]
Message-Id: <1410690609-9870-1-git-send-email-work@sorin.cc>
Date: Sun, 14 Sep 2014 03:30:09 -0700
From: Sorin Facaoaru <work@...in.cc>
To: gregkh@...uxfoundation.org
Cc: john.stultz@...aro.org, sachin.kamat@...aro.org,
kamlakant.patel@...adcom.com, devel@...verdev.osuosl.org,
linux-kernel@...r.kernel.org, Sorin Facaoaru <work@...in.cc>
Subject: [PATCH] Staging: mt29f_spinand: fix coding style
- add curly braces around else compound
Signed-off-by: Sorin Facaoaru <work@...in.cc>
---
drivers/staging/mt29f_spinand/mt29f_spinand.c | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/drivers/staging/mt29f_spinand/mt29f_spinand.c b/drivers/staging/mt29f_spinand/mt29f_spinand.c
index 3464e0c..ccefbf8 100644
--- a/drivers/staging/mt29f_spinand/mt29f_spinand.c
+++ b/drivers/staging/mt29f_spinand/mt29f_spinand.c
@@ -279,8 +279,9 @@ static int spinand_disable_ecc(struct spi_device *spi_nand)
if (retval < 0)
return retval;
return spinand_get_otp(spi_nand, &otp);
- } else
+ } else {
return 0;
+ }
}
/**
@@ -529,8 +530,9 @@ static int spinand_program_page(struct spi_device *spi_nand,
dev_err(&spi_nand->dev,
"program error, page %d\n", page_id);
return -1;
- } else
+ } else {
break;
+ }
}
}
#ifdef CONFIG_MTD_SPINAND_ONDIEECC
@@ -605,8 +607,9 @@ static int spinand_erase_block(struct spi_device *spi_nand, u16 block_id)
dev_err(&spi_nand->dev,
"erase error, block %d\n", block_id);
return -1;
- } else
+ } else {
break;
+ }
}
}
return 0;
--
1.9.1
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists