]> git.baikalelectronics.ru Git - kernel.git/commit
drivers/block: remove redundant 'default n' from Kconfig-s
authorBartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Tue, 9 Oct 2018 14:41:01 +0000 (16:41 +0200)
committerJens Axboe <axboe@kernel.dk>
Wed, 10 Oct 2018 20:11:08 +0000 (14:11 -0600)
commitc7e60909e2bceb03323c5cf4c018792d83667bc8
tree2d5223a1cac8589f9b3271ca392debde7b867062
parent077703de02888457935a5e54579ec40d9e35f35a
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 044e7d0ed21d ("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>
drivers/block/Kconfig
drivers/block/drbd/Kconfig
drivers/block/zram/Kconfig