From: Fabio Estevam Date: Mon, 2 Dec 2013 02:30:27 +0000 (-0200) Subject: mtd: tests: mtd_nandecctest: Use IS_ENABLED() macro X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=7e8eb8ae6618a82e598fe11ac01839d0bc4a5520;p=openwrt%2Fstaging%2Fblogic.git 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 Signed-off-by: Brian Norris --- 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;