Skip to content

Commit 486c6fb

Browse files
bzolnieraxboe
authored andcommitted
drivers/block: remove redundant 'default n' from Kconfig-s
'default n' is the default value for any bool or tristate Kconfig setting so there is no need to write it explicitly. Also since commit f467c56 ("kconfig: only write '# CONFIG_FOO is not set' for visible symbols") the Kconfig behavior is the same regardless of 'default n' being present or not: ... One side effect of (and the main motivation for) this change is making the following two definitions behave exactly the same: config FOO bool config FOO bool default n With this change, neither of these will generate a '# CONFIG_FOO is not set' line (assuming FOO isn't selected/implied). That might make it clearer to people that a bare 'default n' is redundant. ... Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
1 parent 1306ad4 commit 486c6fb

File tree

3 files changed

+0
-4
lines changed

3 files changed

+0
-4
lines changed

drivers/block/Kconfig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -461,7 +461,6 @@ config BLK_DEV_RBD
461461
select LIBCRC32C
462462
select CRYPTO_AES
463463
select CRYPTO
464-
default n
465464
help
466465
Say Y here if you want include the Rados block device, which stripes
467466
a block device over objects stored in the Ceph distributed object

drivers/block/drbd/Kconfig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ config BLK_DEV_DRBD
1111
depends on PROC_FS && INET
1212
select LRU_CACHE
1313
select LIBCRC32C
14-
default n
1514
help
1615

1716
NOTE: In order to authenticate connections you have to select

drivers/block/zram/Kconfig

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ config ZRAM
33
tristate "Compressed RAM block device support"
44
depends on BLOCK && SYSFS && ZSMALLOC && CRYPTO
55
select CRYPTO_LZO
6-
default n
76
help
87
Creates virtual block devices called /dev/zramX (X = 0, 1, ...).
98
Pages written to these disks are compressed and stored in memory
@@ -18,7 +17,6 @@ config ZRAM
1817
config ZRAM_WRITEBACK
1918
bool "Write back incompressible page to backing device"
2019
depends on ZRAM
21-
default n
2220
help
2321
With incompressible page, there is no memory saving to keep it
2422
in memory. Instead, write it out to backing device.

0 commit comments

Comments
 (0)