]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
smbd: Avoid a "?true:false" in smbd_do_locking
authorVolker Lendecke <vl@samba.org>
Sun, 26 May 2019 08:59:01 +0000 (10:59 +0200)
committerJeremy Allison <jra@samba.org>
Tue, 18 Jun 2019 12:53:58 +0000 (12:53 +0000)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
source3/smbd/reply.c

index 88823ae31c9de89407cf7b0bb648c938fbd1094a..da47e6ed9b9cc39b053088bf3ad7cf1f7a109c38 100644 (file)
@@ -8157,7 +8157,7 @@ NTSTATUS smbd_do_locking(struct smb_request *req,
                                                e->offset,
                                                WINDOWS_LOCK);
                } else {
-                       bool blocking_lock = timeout ? true : false;
+                       bool blocking_lock = (timeout != 0);
                        bool defer_lock = false;
                        struct byte_range_lock *br_lck;
                        uint64_t block_smblctx;