mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-09 03:21:51 +00:00
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>
This commit is contained in:
parent
723806cc5b
commit
21f639446d
4 changed files with 5 additions and 5 deletions
2
env/dataflash.c
vendored
2
env/dataflash.c
vendored
|
@ -14,7 +14,7 @@
|
|||
|
||||
DECLARE_GLOBAL_DATA_PTR;
|
||||
|
||||
static unsigned char env_dataflash_get_char(int index)
|
||||
static int env_dataflash_get_char(int index)
|
||||
{
|
||||
uchar c;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue