libsmb: Simplify an if-condition
authorVolker Lendecke <vl@samba.org>
Fri, 2 Feb 2024 14:06:06 +0000 (15:06 +0100)
committerVolker Lendecke <vl@samba.org>
Tue, 12 Mar 2024 13:31:31 +0000 (13:31 +0000)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source3/libsmb/clifile.c

index cc1b4d40044e347e78f35671a24693d516a5ec1b..1ff3973bb39b1ce1fed0d2d0166fb79d0616827f 100644 (file)
@@ -3509,7 +3509,7 @@ NTSTATUS cli_open(struct cli_state *cli, const char *fname, int flags,
        }
 
 #if defined(O_SYNC)
-       if ((flags & O_SYNC) == O_SYNC) {
+       if (flags & O_SYNC) {
                dos_deny |= (1<<14);
        }
 #endif /* O_SYNC */