Browse Source

mtd: tests: mtd_nandecctest: Use IS_ENABLED() macro

Using the IS_ENABLED() macro can make the code shorter and simpler.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Fabio Estevam 11 năm trước cách đây
mục cha
commit
7e8eb8ae66
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      drivers/mtd/tests/mtd_nandecctest.c

+ 1 - 1
drivers/mtd/tests/mtd_nandecctest.c

@@ -19,7 +19,7 @@
  * or detected.
  */
 
-#if defined(CONFIG_MTD_NAND) || defined(CONFIG_MTD_NAND_MODULE)
+#if IS_ENABLED(CONFIG_MTD_NAND)
 
 struct nand_ecc_test {
 	const char *name;