aboutsummaryrefslogtreecommitdiff
path: root/env
diff options
context:
space:
mode:
authorMarek BehĂșn <marek.behun@nic.cz>2021-10-17 17:36:37 +0200
committerSimon Glass <sjg@chromium.org>2021-10-21 12:50:48 -0600
commita80652ebb394abfd508feb38090228f5e5290d32 (patch)
treefa250f890c7569e7ab67e29d170d1e7ca1221b44 /env
parenta473766cce44882237e567bcd58f7559ecdd0440 (diff)
downloadu-boot-a80652ebb394abfd508feb38090228f5e5290d32.zip
u-boot-a80652ebb394abfd508feb38090228f5e5290d32.tar.gz
u-boot-a80652ebb394abfd508feb38090228f5e5290d32.tar.bz2
env: Simplify env_match() and inline into env_get_f()
In the past the env_match() function was used to match envs with - name, i.e. string "name" - variable assignment, i.e. string "name=other_value" The latter is not the case anymore, since the env_match() function is now used only in env_get_f(), and so we can simplify the function into a simple strncmp() with an additional comparison to '='. Let's do this, and since the resulting function is quite simple, let's also inline its code into env_get_f(). Signed-off-by: Marek BehĂșn <marek.behun@nic.cz> Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'env')
0 files changed, 0 insertions, 0 deletions