Skip to contentSkip to conversation

mtd: tests: mtd_nandecctest: Use IS_ENABLED() macro

PATCH Applied Fabio Estevam 2 participants 2 messages Dec 2, 2013 – Dec 5, 2013 Memory technology devices (MTD)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mtd: tests: mtd_nandecctest: Use IS_ENABLED() macro

From: Fabio Estevam <[email protected]>

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

---
 drivers/mtd/tests/mtd_nandecctest.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/mtd/tests/mtd_nandecctest.c +1 -1
index 7010660..e579f90 100644
@@ -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;
Signature · 1 line
1.8.1.2