diff options
author | Fabio Estevam <fabio.estevam@freescale.com> | 2013-12-02 02:30:27 (GMT) |
---|---|---|
committer | Brian Norris <computersforpeace@gmail.com> | 2014-01-03 19:22:21 (GMT) |
commit | 7e8eb8ae6618a82e598fe11ac01839d0bc4a5520 (patch) | |
tree | ffed33ecf6e73ba691afaf1ef149f72d418555b6 /drivers/mtd/tests/mtd_nandecctest.c | |
parent | 54c738f694ab67a007a43482d1dd7cf956fbb6c3 (diff) | |
download | linux-7e8eb8ae6618a82e598fe11ac01839d0bc4a5520.tar.xz |
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/tests/mtd_nandecctest.c b/drivers/mtd/tests/mtd_nandecctest.c index 7010660..e579f90 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; |