projects
/
bertos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b835226
)
Add missing semicolon; remove useless test.
author
batt
<batt@38d2e660-2303-0410-9eaa-f027e97ec537>
Thu, 25 Sep 2008 17:44:56 +0000
(17:44 +0000)
committer
batt
<batt@38d2e660-2303-0410-9eaa-f027e97ec537>
Thu, 25 Sep 2008 17:44:56 +0000
(17:44 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1852
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 f85d8c96bedaf48e7efd99d3325e7d07e1c8e0f0..671a1b91affe88594460b41bd543a2823df4b31b 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"); return false } } 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);
@@
-559,7
+559,7
@@
bool battfs_fsck(struct BattFsSuper *disk)
FSCHECK(page_used == disk->free_page_start);
FSCHECK(free_bytes == disk->free_bytes);
- FSCHECK(files < BATTFS_MAX_FILES);
+
return true;
}