summaryrefslogtreecommitdiff
path: root/libdiskfs
diff options
context:
space:
mode:
Diffstat (limited to 'libdiskfs')
-rw-r--r--libdiskfs/file-syncfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libdiskfs/file-syncfs.c b/libdiskfs/file-syncfs.c
index 5a5a6802..befdfb55 100644
--- a/libdiskfs/file-syncfs.c
+++ b/libdiskfs/file-syncfs.c
@@ -30,7 +30,7 @@ diskfs_S_file_syncfs (struct protid *cred,
error_t error;
error = fshelp_fetch_control (np, &control);
- if (!error && control != MACH_PORT_NULL)
+ if (!error && (control != MACH_PORT_NULL))
{
fsys_syncfs (control, wait, 1);
mach_port_deallocate (mach_task_self (), control);