]> git.baikalelectronics.ru Git - kernel.git/commit
ACPI: remove redundant 'default n' from Kconfig
authorBartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Wed, 10 Oct 2018 14:41:30 +0000 (16:41 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 12 Oct 2018 08:30:32 +0000 (10:30 +0200)
commit29f77d35e32191b0bc3a27abdfdf302df0ce1a91
treefe5e9921c34dbb76b4f3dac5b05773cd74202959
parentfeee56c9efe12f45fb0a53d61ea6d95564801ec1
ACPI: remove redundant 'default n' from Kconfig

'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 df5a3c104c4a ("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: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/Kconfig