removed redundant code.
This commit is contained in:
parent
5fe2c34038
commit
a59cbaf19f
1 changed files with 1 additions and 4 deletions
|
@ -1043,11 +1043,8 @@ cfs_write(int fd, const void *buf, unsigned size)
|
|||
|
||||
i = write_log_page(fdp, &lp);
|
||||
if(i == 0) {
|
||||
lp.offset = fdp->offset;
|
||||
lp.buf = (char *)buf + size - remains;
|
||||
lp.size = remains;
|
||||
/* The file was merged with the log. Try again. */
|
||||
i = write_log_page(fdp, &lp);
|
||||
continue;
|
||||
}
|
||||
if(i < 0) {
|
||||
return size - remains > 0 ? size - remains : -1;
|
||||
|
|
Loading…
Reference in a new issue