[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <fa1a28d64cb484535e355f364b49f5ab42b98f46.1418288403.git.michal.simek@xilinx.com>
Date: Thu, 11 Dec 2014 10:00:08 +0100
From: Michal Simek <michal.simek@...inx.com>
To: linux-kernel@...r.kernel.org, monstr@...str.eu
Subject: [PATCH] kconfig: Use macros which are already defined
It is better to use macros which are already available
because then there is just one location which needs to be change.
Signed-off-by: Michal Simek <michal.simek@...inx.com>
---
FYI: Fengguang's testing system doesn't show any build error.
---
include/linux/kconfig.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/linux/kconfig.h b/include/linux/kconfig.h
index be342b94c640..71acdf650e2e 100644
--- a/include/linux/kconfig.h
+++ b/include/linux/kconfig.h
@@ -28,7 +28,7 @@
*
*/
#define IS_ENABLED(option) \
- (config_enabled(option) || config_enabled(option##_MODULE))
+ (IS_BUILTIN(option) || IS_MODULE(option))
/*
* IS_BUILTIN(CONFIG_FOO) evaluates to 1 if CONFIG_FOO is set to 'y', 0
--
1.8.2.3
Content of type "application/pgp-signature" skipped
Powered by blists - more mailing lists