mirror of
https://github.com/xcat2/xNBA.git
synced 2024-12-14 23:31:39 +00:00
Return -EIO when verification fails, instead of -EINVAL.
This commit is contained in:
parent
cbeec25662
commit
6ceaa158da
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user