diff options
| -rw-r--r-- | include/linux/mtd/rawnand.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/mtd/rawnand.h b/include/linux/mtd/rawnand.h index 8fb488d586d6..c433f093766a 100644 --- a/include/linux/mtd/rawnand.h +++ b/include/linux/mtd/rawnand.h | |||
| @@ -1234,6 +1234,8 @@ int onfi_init_data_interface(struct nand_chip *chip, | |||
| 1234 | */ | 1234 | */ |
| 1235 | static inline bool nand_is_slc(struct nand_chip *chip) | 1235 | static inline bool nand_is_slc(struct nand_chip *chip) |
| 1236 | { | 1236 | { |
| 1237 | WARN(chip->bits_per_cell == 0, | ||
| 1238 | "chip->bits_per_cell is used uninitialized\n"); | ||
| 1237 | return chip->bits_per_cell == 1; | 1239 | return chip->bits_per_cell == 1; |
| 1238 | } | 1240 | } |
| 1239 | 1241 | ||
