Remove unneeded if.
authorbatt <batt@38d2e660-2303-0410-9eaa-f027e97ec537>
Wed, 24 Sep 2008 15:29:09 +0000 (15:29 +0000)
committerbatt <batt@38d2e660-2303-0410-9eaa-f027e97ec537>
Wed, 24 Sep 2008 15:29:09 +0000 (15:29 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1838 38d2e660-2303-0410-9eaa-f027e97ec537

bertos/fs/battfs.c

index c29cc8e1733657f829a362ba402ea60ca56f1b2e..9bc8bdfd0b649b556743dcb1fae4b68eef509f6f 100644 (file)
@@ -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);
 }
 
 /**