From: Simon Glass Date: Thu, 3 Aug 2017 12:21:54 -0600 Subject: [U-Boot] [PATCH v5 07/30] env: common: Drop env_get_char_init() In-Reply-To: <20170803182217.149285-1-sjg@chromium.org> References: <20170803182217.149285-1-sjg@chromium.org> Message-ID: <20170803182217.149285-8-sjg@chromium.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de This function does nothing but call env_get_char_spec(). Drop it and adjust its only caller. Signed-off-by: Simon Glass Reviewed-by: Tom Rini --- Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: None env/common.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) 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); } /* -- 2.14.0.rc1.383.gd1ce394fe2-goog