summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author[email protected] <[email protected]>2012-04-08 12:44:38 +0000
committer[email protected] <[email protected]>2012-04-08 12:44:38 +0000
commit7f98c2e5e99b4d376e2d048bd21d99296c985214 (patch)
tree9bbd914b4c12bc3fdc375d0951b446af19c2d5b4
parent0bcb79b3abf988db924fc96f1b7c98236012b04d (diff)
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
-rw-r--r--components/dfs/filesystems/uffs/dfs_uffs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/dfs/filesystems/uffs/dfs_uffs.c b/components/dfs/filesystems/uffs/dfs_uffs.c
index c8b2de3d07..18ab13f7ed 100644
--- a/components/dfs/filesystems/uffs/dfs_uffs.c
+++ b/components/dfs/filesystems/uffs/dfs_uffs.c
@@ -76,7 +76,7 @@ static int uffs_result_to_dfs(int result)
status = -DFS_STATUS_EBADF;
break;
case UENOMEM:/** no enough memory */
- status = -DFS_STATUS_ENOMEM;
+ status = -DFS_STATUS_ENOSPC;
break;
case UEIOERR: /** I/O error from lower level flash operation */
status = -DFS_STATUS_EIO;