On Sun, 17 Oct 2021 at 09:37, Marek Behún <ka...@kernel.org> wrote: > > From: Marek Behún <marek.be...@nic.cz> > > 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.be...@nic.cz> > --- > cmd/nvedit.c | 19 +++++-------------- > 1 file changed, 5 insertions(+), 14 deletions(-)
Reviewed-by: Simon Glass <s...@chromium.org>