aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mtd/tests/mtd_nandecctest.c
diff options
context:
space:
mode:
authorFabio Estevam <fabio.estevam@freescale.com>2013-12-01 21:30:27 -0500
committerBrian Norris <computersforpeace@gmail.com>2014-01-03 14:22:21 -0500
commit7e8eb8ae6618a82e598fe11ac01839d0bc4a5520 (patch)
treeffed33ecf6e73ba691afaf1ef149f72d418555b6 /drivers/mtd/tests/mtd_nandecctest.c
parent54c738f694ab67a007a43482d1dd7cf956fbb6c3 (diff)
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>
Diffstat (limited to 'drivers/mtd/tests/mtd_nandecctest.c')
-rw-r--r--drivers/mtd/tests/mtd_nandecctest.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/tests/mtd_nandecctest.c b/drivers/mtd/tests/mtd_nandecctest.c
index 70106607c247..e579f9027c47 100644
--- a/drivers/mtd/tests/mtd_nandecctest.c
+++ b/drivers/mtd/tests/mtd_nandecctest.c
@@ -19,7 +19,7 @@
19 * or detected. 19 * or detected.
20 */ 20 */
21 21
22#if defined(CONFIG_MTD_NAND) || defined(CONFIG_MTD_NAND_MODULE) 22#if IS_ENABLED(CONFIG_MTD_NAND)
23 23
24struct nand_ecc_test { 24struct nand_ecc_test {
25 const char *name; 25 const char *name;