mtd: tests: mtd_nandecctest: Use IS_ENABLED() macro

Submitted by Fabio Estevam on Dec. 2, 2013, 2:30 a.m.

Details

Message ID 1385951427-18909-1-git-send-email-festevam@gmail.com
State Accepted
Commit 7e8eb8ae6618a82e598fe11ac01839d0bc4a5520
Headers show

Commit Message

Fabio Estevam Dec. 2, 2013, 2:30 a.m.
From: Fabio Estevam <fabio.estevam@freescale.com>

Using the IS_ENABLED() macro can make the code shorter and simpler.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
---
 drivers/mtd/tests/mtd_nandecctest.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Brian Norris Dec. 5, 2013, 2:11 a.m.
On Mon, Dec 02, 2013 at 12:30:27AM -0200, Fabio Estevam wrote:
> From: Fabio Estevam <fabio.estevam@freescale.com>
> 
> Using the IS_ENABLED() macro can make the code shorter and simpler.
> 
> Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>

Pushed to l2-mtd.git. Thanks!

Brian

Patch hide | download patch | download mbox

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;