diff options
author | Simon Glass <sjg@chromium.org> | 2017-08-03 12:22:16 -0600 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2017-08-16 08:31:24 -0400 |
commit | 21f639446d6bccb6cc550140d36bd3ebd74fcee8 (patch) | |
tree | ce0d9c8f4f27a05d86ab42bb727221b6fe4046df /env/nvram.c | |
parent | 723806cc5bea9f8b37323dfd7568603f99af6a06 (diff) | |
download | u-boot-21f639446d6bccb6cc550140d36bd3ebd74fcee8.tar.gz |
env: Adjust the get_char() method to return an int
In principle this can fail, e.g. if the index is out of range. Adjust the
driver signature to allow returning an error code.
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'env/nvram.c')
-rw-r--r-- | env/nvram.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/env/nvram.c b/env/nvram.c index ac389ace62..85af37d4a0 100644 --- a/env/nvram.c +++ b/env/nvram.c @@ -41,7 +41,7 @@ env_t *env_ptr = (env_t *)CONFIG_ENV_ADDR; #endif #ifdef CONFIG_SYS_NVRAM_ACCESS_ROUTINE -static uchar env_nvram_get_char(int index) +static int env_nvram_get_char(int index) { uchar c; |