2
0
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:
Michael Brown 2006-12-20 14:11:50 +00:00
parent cbeec25662
commit 6ceaa158da

View File

@ -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;