From 21f639446d6bccb6cc550140d36bd3ebd74fcee8 Mon Sep 17 00:00:00 2001 From: Simon Glass Date: Thu, 3 Aug 2017 12:22:16 -0600 Subject: 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 Reviewed-by: Tom Rini --- env/dataflash.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'env/dataflash.c') diff --git a/env/dataflash.c b/env/dataflash.c index 28dcf6fa1cd..afa08f8fd50 100644 --- a/env/dataflash.c +++ b/env/dataflash.c @@ -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; -- cgit v1.2.3