mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] Staging: mt29f_spinand: fix coding style
@ 2014-09-14 10:30 Sorin Facaoaru
  0 siblings, 0 replies; only message in thread
From: Sorin Facaoaru @ 2014-09-14 10:30 UTC (permalink / raw)
  To: gregkh
  Cc: john.stultz, sachin.kamat, kamlakant.patel, devel, linux-kernel,
	Sorin Facaoaru

- add curly braces around else compound

Signed-off-by: Sorin Facaoaru <work@sorin.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



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2014-09-14 10:30 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-09-14 10:30 [PATCH] Staging: mt29f_spinand: fix coding style Sorin Facaoaru

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®