From: Marek Behún <marek.behun at nic.cz> Test non-NULL name immediately, not in env_match(). Signed-off-by: Marek Behún <marek.behun at nic.cz> Reviewed-by: Simon Glass <sjg at chromium.org> --- cmd/nvedit.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) Applied to u-boot-dm, thanks!