mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-24 13:43:28 +00:00
2d307fb9ed
Before using the result of env_get("stdin") we must check if it is NULL.
Avoid #if. This resolves the -Wunused-but-set-variable issue and we don't
need a dummy assignment in the else branch. Anyway this warning is
disabled in the Makefile.
For sake of readability use an early return after the configuration check.
Checking CONFIG_SPL_BUILD is incorrect as env_get() is only defined if
CONFIG_$(SPL_TPL)ENV_SUPPORT=y.
Fixes:
|
||
---|---|---|
.. | ||
apple_spi_kbd.c | ||
button_kbd.c | ||
cros_ec_keyb.c | ||
i8042.c | ||
input.c | ||
Kconfig | ||
key_matrix.c | ||
keyboard-uclass.c | ||
Makefile | ||
tegra-kbc.c | ||
twl4030.c |