Staging: mt29f_spinand: fix coding style
Subsystems (2)
PATCH 1/1 Staging: mt29f_spinand: fix coding style
- add curly braces around else compound
Signed-off-by Sorin Facaoaru <[email protected]>
--- drivers/staging/mt29f_spinand/mt29f_spinand.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-)
drivers/staging/mt29f_spinand/mt29f_spinand.c +6 -3
@@ -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 ;
Signature · 1 line
1.9.1