projects
/
bertos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
47c8eef
)
Remove unneeded if.
author
batt
<batt@38d2e660-2303-0410-9eaa-f027e97ec537>
Wed, 24 Sep 2008 15:29:09 +0000
(15:29 +0000)
committer
batt
<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
patch
|
blob
|
history
diff --git
a/bertos/fs/battfs.c
b/bertos/fs/battfs.c
index c29cc8e1733657f829a362ba402ea60ca56f1b2e..9bc8bdfd0b649b556743dcb1fae4b68eef509f6f 100644
(file)
--- 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);
}
/**