Skip to contentSkip to conversation

Staging: mt29f_spinand: fix coding style

PATCH New Sorin Facaoaru 1 participant 1 message Sep 14, 2014

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Staging: mt29f_spinand: fix coding style

- add curly braces around else compound

---
 drivers/staging/mt29f_spinand/mt29f_spinand.c | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)
drivers/staging/mt29f_spinand/mt29f_spinand.c +6 -3
index 3464e0c..ccefbf8 100644
@@ -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