Message ID | 20170803182217.149285-8-sjg@chromium.org |
---|---|
State | Accepted |
Delegated to: | Tom Rini |
Headers | show |
On Thu, Aug 03, 2017 at 12:21:54PM -0600, Simon Glass wrote: > 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> Applied to u-boot/master, thanks!
diff --git a/env/common.c b/env/common.c index bfa8cfb143..f0ffe4ed73 100644 --- a/env/common.c +++ b/env/common.c @@ -32,11 +32,6 @@ __weak uchar env_get_char_spec(int index) 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); @@ -50,7 +45,7 @@ uchar env_get_char(int 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); } /*