[PATCH] streamline Kconfig-s under lib/

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



"def_bool n" without prompt is pointless, this should be just "bool".

'n' defaults are also pretty pointless and actually bogus when used
with prompt-less config options.

The "bool"/"default y" pair with no prompt can be expressed more
compactly using def_bool.

Signed-off-by: Jan Beulich <jbeulich@xxxxxxxxxx>

---
 lib/Kconfig    |    5 ++---
 lib/xz/Kconfig |    2 --
 2 files changed, 2 insertions(+), 5 deletions(-)

--- 2.6.38-rc5/lib/Kconfig
+++ 2.6.38-rc5-kconfig-lib/lib/Kconfig
@@ -3,7 +3,7 @@
 #
 
 config BINARY_PRINTF
-	def_bool n
+	bool
 
 menu "Library routines"
 
@@ -23,8 +23,7 @@ config GENERIC_FIND_NEXT_BIT
 	bool
 
 config GENERIC_FIND_LAST_BIT
-	bool
-	default y
+	def_bool y
 
 config CRC_CCITT
 	tristate "CRC-CCITT functions"
--- 2.6.38-rc5/lib/xz/Kconfig
+++ 2.6.38-rc5-kconfig-lib/lib/xz/Kconfig
@@ -44,11 +44,9 @@ config XZ_DEC_SPARC
 
 config XZ_DEC_BCJ
 	bool
-	default n
 
 config XZ_DEC_TEST
 	tristate "XZ decompressor tester"
-	default n
 	depends on XZ_DEC
 	help
 	  This allows passing .xz files to the in-kernel XZ decoder via



--
To unsubscribe from this list: send the line "unsubscribe linux-kbuild" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux&nblp;USB Development]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite Secrets]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux