From: Volker Lendecke Date: Mon, 1 Sep 2025 15:16:42 +0000 (+0200) Subject: smbd: Slightly simplify smbd_smb2_lock_send() X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4f93cb4560a823cdc6ac8b636d91edd76731de63;p=thirdparty%2Fsamba.git smbd: Slightly simplify smbd_smb2_lock_send() " == false" just looks wrong :-) Signed-off-by: Volker Lendecke Reviewed-by: Anoop C S --- diff --git a/source3/smbd/smb2_lock.c b/source3/smbd/smb2_lock.c index 0a138323077..08490845a4b 100644 --- a/source3/smbd/smb2_lock.c +++ b/source3/smbd/smb2_lock.c @@ -448,7 +448,7 @@ static struct tevent_req *smbd_smb2_lock_send(TALLOC_CTX *mem_ctx, } if (in_locks[i].flags & SMB2_LOCK_FLAG_EXCLUSIVE) { - if (posix_handle && fsp->fsp_flags.can_write == false) { + if (posix_handle && !fsp->fsp_flags.can_write) { /* * Can't get a write lock on a posix * read-only handle.