commit | 4be5f756616f3ae1df7ecb7c04590866d19a3775 | [log] [tgz] |
---|---|---|
author | Simon Glass <sjg@chromium.org> | Thu Aug 03 12:21:53 2017 -0600 |
committer | Tom Rini <trini@konsulko.com> | Tue Aug 15 08:18:46 2017 -0400 |
tree | 77585503beec80c8b8ccaced34daee9bea11246f | |
parent | 9898ff31d353ecc4aa34e7593a5f814c5e372422 [diff] |
env: common: Factor out the common env_valid check The check for gd->env_valid is used in both the 'if' and 'else' part of env_get_char(). Move it into that function instead for simplicity. Drop that code from the two leaf functions. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Tom Rini <trini@konsulko.com>