diff options
author | Michael Brown | 2006-12-20 15:11:50 +0100 |
---|---|---|
committer | Michael Brown | 2006-12-20 15:11:50 +0100 |
commit | 6ceaa158da9cf2c5c74e791ffada55b7f91c6f97 (patch) | |
tree | b5bd6d830de0aa999547095b7783b1789dcbbd27 /src/drivers/nvs | |
parent | settings_ui() now returns a status code. (diff) | |
download | ipxe-6ceaa158da9cf2c5c74e791ffada55b7f91c6f97.tar.gz ipxe-6ceaa158da9cf2c5c74e791ffada55b7f91c6f97.tar.xz ipxe-6ceaa158da9cf2c5c74e791ffada55b7f91c6f97.zip |
Return -EIO when verification fails, instead of -EINVAL.
Diffstat (limited to 'src/drivers/nvs')
-rw-r--r-- | src/drivers/nvs/nvs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/drivers/nvs/nvs.c b/src/drivers/nvs/nvs.c index 44b56f65..02a96d9d 100644 --- a/src/drivers/nvs/nvs.c +++ b/src/drivers/nvs/nvs.c @@ -93,7 +93,7 @@ static int nvs_verify ( struct nvs_device *nvs, unsigned int address, if ( memcmp ( data, read_data, len ) != 0 ) { DBG ( "NVS %p verification failed at %#04x+%d\n", nvs, address, len ); - return -EINVAL; + return -EIO; } return 0; |