diff options
Diffstat (limited to 'ffs/src/libffs.c')
-rw-r--r-- | ffs/src/libffs.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/ffs/src/libffs.c b/ffs/src/libffs.c index 83a7df0..7518651 100644 --- a/ffs/src/libffs.c +++ b/ffs/src/libffs.c @@ -637,14 +637,6 @@ static int ffs_flush(ffs_t * self) return -1; } - if (fileno(self->file) != -1) { - if (fsync(fileno(self->file)) < 0) { - ERRNO(errno); - return -1; - } - } - - self->dirty = false; return 0; @@ -763,10 +755,6 @@ int __ffs_fsync(ffs_t * self) return -1; } - if (fileno(self->file) != -1) - if (fsync(fileno(self->file)) < 0) - return -1; - return 0; } |