server: Remove the return value of the flush() method, it's not used.
diff --git a/server/file.c b/server/file.c
index 193f5d3..5f5349d 100644
--- a/server/file.c
+++ b/server/file.c
@@ -69,7 +69,7 @@
static void file_destroy( struct object *obj );
static int file_get_poll_events( struct fd *fd );
-static int file_flush( struct fd *fd, struct event **event );
+static void file_flush( struct fd *fd, struct event **event );
static enum server_fd_type file_get_info( struct fd *fd, int *flags );
static const struct object_ops file_ops =
@@ -227,16 +227,10 @@
return events;
}
-static int file_flush( struct fd *fd, struct event **event )
+static void file_flush( struct fd *fd, struct event **event )
{
- int ret = 0, unix_fd = get_unix_fd( fd );
-
- if (unix_fd != -1)
- {
- ret = (fsync( unix_fd ) != -1);
- if (!ret) file_set_error();
- }
- return ret;
+ int unix_fd = get_unix_fd( fd );
+ if (unix_fd != -1 && fsync( unix_fd ) == -1) file_set_error();
}
static enum server_fd_type file_get_info( struct fd *fd, int *flags )