Browse Source

Return -EIO when verification fails, instead of -EINVAL.

tags/v0.9.3
Michael Brown 18 years ago
parent
commit
6ceaa158da
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      src/drivers/nvs/nvs.c

+ 1
- 1
src/drivers/nvs/nvs.c View File

93
 	if ( memcmp ( data, read_data, len ) != 0 ) {
93
 	if ( memcmp ( data, read_data, len ) != 0 ) {
94
 		DBG ( "NVS %p verification failed at %#04x+%d\n",
94
 		DBG ( "NVS %p verification failed at %#04x+%d\n",
95
 		      nvs, address, len );
95
 		      nvs, address, len );
96
-		return -EINVAL;
96
+		return -EIO;
97
 	}
97
 	}
98
 
98
 
99
 	return 0;
99
 	return 0;

Loading…
Cancel
Save