kconfig: Remove some redundant single-item menus and ifs

A single menu within an if like

    if FOO

    menu "blah"

    ...

    endmenu

    endif

can be replaced with

    menu "blah"
            depends on FOO

    ...

    endmenu

Fix up all existing instances.

Also remove redundant extra menus underneath 'menuconfig' symbols.
'menuconfig' already creates a menu.

Also remove the menu in arch/arm/core/aarch32/Kconfig around the
"Floating point ABI" choice. The choice depends on FLOAT, which depends
on CPU_HAS_CPU, so remove the 'depends on CPU_HAS_FPU' too.

Piggyback removing a redundant 'default n' for BME280.

Signed-off-by: Ulf Magnusson <Ulf.Magnusson@nordicsemi.no>
This commit is contained in:
Ulf Magnusson 2019-12-21 07:00:23 +01:00 committed by Anas Nashif
commit 6ef29c0250
8 changed files with 3 additions and 34 deletions

View file

@ -11,8 +11,6 @@ menuconfig BME680
if BME680
menu "BME680 Attributes"
choice
prompt "BME680 temperature oversampling"
default BME680_TEMP_OVER_2X
@ -112,6 +110,4 @@ config BME680_HEATR_DUR_ULP
bool "1943"
endchoice
endmenu # BME680 Attributes
endif # BME680