From: batt Date: Thu, 25 Sep 2008 17:44:56 +0000 (+0000) Subject: Add missing semicolon; remove useless test. X-Git-Tag: 2.0.0~82 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=d49c6aac6810be16ca8fec75273084194c3decf0;p=bertos.git Add missing semicolon; remove useless test. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1852 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/bertos/fs/battfs.c b/bertos/fs/battfs.c index f85d8c96..671a1b91 100644 --- 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; }