fix bug in uffs_result_to_dfs, that UENOMEM is corresponding with DFS_STATUS_ENOSPC

git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2026 bbd45198-f89e-11dd-88c7-29a3b14d5316
This commit is contained in:
goprife@gmail.com 2012-04-08 12:44:38 +00:00
parent 0bcb79b3ab
commit 7f98c2e5e9
1 changed files with 1 additions and 1 deletions

View File

@ -76,7 +76,7 @@ static int uffs_result_to_dfs(int result)
status = -DFS_STATUS_EBADF; status = -DFS_STATUS_EBADF;
break; break;
case UENOMEM:/** no enough memory */ case UENOMEM:/** no enough memory */
status = -DFS_STATUS_ENOMEM; status = -DFS_STATUS_ENOSPC;
break; break;
case UEIOERR: /** I/O error from lower level flash operation */ case UEIOERR: /** I/O error from lower level flash operation */
status = -DFS_STATUS_EIO; status = -DFS_STATUS_EIO;