summaryrefslogtreecommitdiffstats
path: root/drivers/mtd/tests
diff options
context:
space:
mode:
authorFabio Estevam <fabio.estevam@freescale.com>2013-12-02 00:30:27 -0200
committerBrian Norris <computersforpeace@gmail.com>2014-01-03 11:22:21 -0800
commit7e8eb8ae6618a82e598fe11ac01839d0bc4a5520 (patch)
treeffed33ecf6e73ba691afaf1ef149f72d418555b6 /drivers/mtd/tests
parent54c738f694ab67a007a43482d1dd7cf956fbb6c3 (diff)
downloadtalos-obmc-linux-7e8eb8ae6618a82e598fe11ac01839d0bc4a5520.tar.gz
talos-obmc-linux-7e8eb8ae6618a82e598fe11ac01839d0bc4a5520.zip
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')
-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 @@
* 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;
OpenPOWER on IntegriCloud