mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-26 07:17:10 +00:00
env: remove duplicated env_get_char_spec()
env_fat and env_remote have an implementation of env_get_char_spec() function that is not different than the default. Remove the duplicated code. Signed-off-by: Igor Grinberg <grinberg@compulab.co.il>
This commit is contained in:
parent
2d1d65838e
commit
3bb89e5bd5
2 changed files with 0 additions and 10 deletions
|
@ -40,11 +40,6 @@ env_t *env_ptr;
|
||||||
|
|
||||||
DECLARE_GLOBAL_DATA_PTR;
|
DECLARE_GLOBAL_DATA_PTR;
|
||||||
|
|
||||||
uchar env_get_char_spec(int index)
|
|
||||||
{
|
|
||||||
return *((uchar *)(gd->env_addr + index));
|
|
||||||
}
|
|
||||||
|
|
||||||
int env_init(void)
|
int env_init(void)
|
||||||
{
|
{
|
||||||
/* use default */
|
/* use default */
|
||||||
|
|
|
@ -41,11 +41,6 @@ DECLARE_GLOBAL_DATA_PTR;
|
||||||
#define CONFIG_ENV_OFFSET 0
|
#define CONFIG_ENV_OFFSET 0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
uchar env_get_char_spec(int index)
|
|
||||||
{
|
|
||||||
return *((uchar *)(gd->env_addr + index));
|
|
||||||
}
|
|
||||||
|
|
||||||
int env_init(void)
|
int env_init(void)
|
||||||
{
|
{
|
||||||
if (crc32(0, env_ptr->data, ENV_SIZE) == env_ptr->crc) {
|
if (crc32(0, env_ptr->data, ENV_SIZE) == env_ptr->crc) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue