Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Fabio Estevam and committed by
Brian Norris
7e8eb8ae 54c738f6

+1 -1
+1 -1
drivers/mtd/tests/mtd_nandecctest.c
··· 19 19 * or detected. 20 20 */ 21 21 22 - #if defined(CONFIG_MTD_NAND) || defined(CONFIG_MTD_NAND_MODULE) 22 + #if IS_ENABLED(CONFIG_MTD_NAND) 23 23 24 24 struct nand_ecc_test { 25 25 const char *name;