diff options
| author | Simon Glass <sjg@chromium.org> | 2017-08-03 12:21:53 -0600 |
|---|---|---|
| committer | Tom Rini <trini@konsulko.com> | 2017-08-15 08:18:46 -0400 |
| commit | 5fc5254084ea367a383a968cc4f79d003cccebd2 (patch) | |
| tree | 77585503beec80c8b8ccaced34daee9bea11246f /include/linux/linux_string.h | |
| parent | 0219fb61c1378152b11f0e21e1e4db89081f15da (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>
Diffstat (limited to 'include/linux/linux_string.h')
0 files changed, 0 insertions, 0 deletions
