Skip to content
Commit 74a5f521 authored by Stefan Herbrechtsmeier's avatar Stefan Herbrechtsmeier Committed by Tom Rini
Browse files

common: cli_hush: Restore clear local variable support



The u-boot hush shell doesn’t support the unset command to clear a
variable and therefore an empty value ("c=") should be a valid value
for the set_local_var function to clear the variable. This partial
reverts commit aa722529 ("common: cli_hush: avoid dead code") and
only checks for a `=` in the string. Additionally explicit call the
unset_local_var function to remove the variable if the value is empty.

Signed-off-by: default avatarStefan Herbrechtsmeier <stefan.herbrechtsmeier@weidmueller.com>
Reviewed-by: default avatarSimon Glass <sjg@chromium.org>
parent 0956e889
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment