summaryrefslogtreecommitdiffstats
path: root/drivers/mtd/tests
diff options
context:
space:
mode:
authorFabio Estevam2013-12-02 03:30:27 +0100
committerBrian Norris2014-01-03 20:22:21 +0100
commit7e8eb8ae6618a82e598fe11ac01839d0bc4a5520 (patch)
treeffed33ecf6e73ba691afaf1ef149f72d418555b6 /drivers/mtd/tests
parentmtd: convert to use ATTRIBUTE_GROUPS (diff)
downloadkernel-qcow2-linux-7e8eb8ae6618a82e598fe11ac01839d0bc4a5520.tar.gz
kernel-qcow2-linux-7e8eb8ae6618a82e598fe11ac01839d0bc4a5520.tar.xz
kernel-qcow2-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;