projects
/
bertos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5bf6908
)
Remove unneeded goto.
author
batt
<batt@38d2e660-2303-0410-9eaa-f027e97ec537>
Thu, 25 Sep 2008 17:38:55 +0000
(17:38 +0000)
committer
batt
<batt@38d2e660-2303-0410-9eaa-f027e97ec537>
Thu, 25 Sep 2008 17:38:55 +0000
(17:38 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1850
38d2e660
-2303-0410-9eaa-
f027e97ec537
bertos/fs/battfs.c
patch
|
blob
|
history
diff --git
a/bertos/fs/battfs.c
b/bertos/fs/battfs.c
index fd07efac5add4157b36f13480f6564eae53a7e9d..f85d8c96bedaf48e7efd99d3325e7d07e1c8e0f0 100644
(file)
--- a/
bertos/fs/battfs.c
+++ b/
bertos/fs/battfs.c
@@
-514,7
+514,7
@@
bool battfs_init(struct BattFsSuper *disk)
*/
bool battfs_fsck(struct BattFsSuper *disk)
{
- #define FSCHECK(cond) do { if(!(cond)) { LOG_ERR("\"" #cond "\"\n");
goto fsck_err;
} } while (0)
+ #define FSCHECK(cond) do { if(!(cond)) { LOG_ERR("\"" #cond "\"\n");
return false
} } while (0)
FSCHECK(disk->free_page_start <= disk->page_count);
FSCHECK(disk->data_size < disk->page_size);
@@
-561,9
+561,6
@@
bool battfs_fsck(struct BattFsSuper *disk)
FSCHECK(free_bytes == disk->free_bytes);
FSCHECK(files < BATTFS_MAX_FILES);
return true;
-
- fsck_err:
- return false;
}
/**