From c69553cbc51770f61cf3b9225d46d058fa2544d0 Mon Sep 17 00:00:00 2001 From: Øyvind Harboe Date: Mon, 3 Jan 2011 13:30:28 +0100 Subject: error handling: the error number is not part of the user interface MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Do not propagate error number to user. This is for internal programming purposes only. Error messages to the user is reported as text via LOG_ERROR(). Signed-off-by: Øyvind Harboe --- src/flash/nor/str7x.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'src/flash/nor/str7x.c') diff --git a/src/flash/nor/str7x.c b/src/flash/nor/str7x.c index 6136f310..b872bc3c 100644 --- a/src/flash/nor/str7x.c +++ b/src/flash/nor/str7x.c @@ -325,10 +325,6 @@ static int str7x_result(struct flash_bank *bank) err = ERROR_FAIL; } } - if (err != ERROR_OK) - { - LOG_ERROR("FLASH_ER register contents: 0x%" PRIx32, retval); - } return retval; } -- cgit v1.2.3