On Tue, 4 Apr 2023 at 01:50, Stefan Herbrechtsmeier <[email protected]> wrote: > > From: Stefan Herbrechtsmeier <[email protected]> > > 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 aa722529635c ("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: Stefan Herbrechtsmeier <[email protected]> > > --- > > Changes in v2: > - Use `!var` instead of `var == NULL` > > common/cli_hush.c | 8 +++++++- > 1 file changed, 7 insertions(+), 1 deletion(-)
Reviewed-by: Simon Glass <[email protected]>

