瀏覽代碼

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

tags/v0.9.3
Michael Brown 18 年之前
父節點
當前提交
6ceaa158da
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. 1
    1
      src/drivers/nvs/nvs.c

+ 1
- 1
src/drivers/nvs/nvs.c 查看文件

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

Loading…
取消
儲存