[PATCH] Staging: mt29f_spinand: fix coding style

From: Sorin Facaoaru
Date: Sun Sep 14 2014 - 06:30:25 EST


- add curly braces around else compound

Signed-off-by: Sorin Facaoaru <work@xxxxxxxx>
---
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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/