提交 0219fb61 编写于 作者: S Simon Glass 提交者: Tom Rini

env: common: Drop env_get_addr()

This function is not used anywhere other than env_get_char(). Move the
code into that function.
Reviewed-by: NTom Rini <trini@konsulko.com>
Signed-off-by: NSimon Glass <sjg@chromium.org>
上级 bcdfb8d5
......@@ -41,17 +41,12 @@ static uchar env_get_char_init(int index)
return default_environment[index];
}
static const uchar *env_get_addr(int index)
static uchar env_get_char_memory(int index)
{
if (gd->env_valid)
return (uchar *)(gd->env_addr + index);
return *(uchar *)(gd->env_addr + index);
else
return &default_environment[index];
}
static uchar env_get_char_memory(int index)
{
return *env_get_addr(index);
return default_environment[index];
}
uchar env_get_char(int index)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册