diff options
author | Øyvind Harboe <oyvind.harboe@zylin.com> | 2011-01-03 13:30:28 +0100 |
---|---|---|
committer | Øyvind Harboe <oyvind.harboe@zylin.com> | 2011-01-03 13:33:27 +0100 |
commit | c69553cbc51770f61cf3b9225d46d058fa2544d0 (patch) | |
tree | 07aa7f6d5bc1861cc926e2359034ef42f17dc46a /src/flash/nor/str7x.c | |
parent | 1795239cfda77315ea2f4fbc028e7a411d13a7d0 (diff) |
error handling: the error number is not part of the user interface
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 <oyvind.harboe@zylin.com>
Diffstat (limited to 'src/flash/nor/str7x.c')
-rw-r--r-- | src/flash/nor/str7x.c | 4 |
1 files changed, 0 insertions, 4 deletions
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; } |