This function does nothing but call env_get_char_spec(). Drop it and
adjust its only caller.
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Tom Rini <trini@konsulko.com>
return *((uchar *)(gd->env_addr + index));
}
-static uchar env_get_char_init(int index)
-{
- return env_get_char_spec(index);
-}
-
static uchar env_get_char_memory(int index)
{
return *(uchar *)(gd->env_addr + index);
else if (gd->flags & GD_FLG_RELOC) /* if relocated to RAM */
return env_get_char_memory(index);
else
- return env_get_char_init(index);
+ return env_get_char_spec(index);
}
/*