smbd: Simplify a boolean expression
[obnox/samba/samba-obnox.git] / source3 / smbd / reply.c
index 7e5aca4042705522344bb6db79a96458d0521641..9ea07a728795a0c684bde76d910efa3b049f128d 100644 (file)
@@ -6463,7 +6463,7 @@ NTSTATUS rename_internals_fsp(connection_struct *conn,
         * the rename (user is trying to change the case of the
         * filename).
         */
-       if((conn->case_sensitive == False) && (conn->case_preserve == True) &&
+       if (!conn->case_sensitive && conn->case_preserve &&
            strequal(fsp->fsp_name->base_name, smb_fname_dst->base_name) &&
            strequal(fsp->fsp_name->stream_name, smb_fname_dst->stream_name)) {
                char *last_slash;