From: batt Date: Wed, 24 Sep 2008 15:29:09 +0000 (+0000) Subject: Remove unneeded if. X-Git-Tag: 2.0.0~96 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=c78bc5055c5fe1b424974f870abda1424166e5db;p=bertos.git Remove unneeded if. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1838 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/bertos/fs/battfs.c b/bertos/fs/battfs.c index c29cc8e1..9bc8bdfd 100644 --- a/bertos/fs/battfs.c +++ b/bertos/fs/battfs.c @@ -566,10 +566,7 @@ static bool getNewPage(struct BattFsSuper *disk, pgcnt_t new_pos, inode_t inode, new_hdr->pgoff = pgoff; new_hdr->fill = 0; new_hdr->seq = 0; - if (!setBufferHdr(disk, new_hdr)) - return false; - else - return true; + return setBufferHdr(disk, new_hdr); } /**