]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
smbd: Avoid a "? True : False"
authorVolker Lendecke <vl@samba.org>
Mon, 16 Dec 2019 15:47:38 +0000 (16:47 +0100)
committerDavid Disseldorp <ddiss@samba.org>
Fri, 3 Jan 2020 00:04:43 +0000 (00:04 +0000)
VALID_STAT() already is a boolean expression

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: David Disseldorp <ddiss@samba.org>
source3/smbd/open.c

index a999f86dd44b9a77afd014e4f1f12f2cb1cc0066..57e68cab41d49c3c46c399a030f582bb5872c8e6 100644 (file)
@@ -4197,7 +4197,7 @@ static NTSTATUS open_directory(connection_struct *conn,
                               files_struct **result)
 {
        files_struct *fsp = NULL;
-       bool dir_existed = VALID_STAT(smb_dname->st) ? True : False;
+       bool dir_existed = VALID_STAT(smb_dname->st);
        struct share_mode_lock *lck = NULL;
        NTSTATUS status;
        struct timespec mtimespec;