smbd: Simplify downgrade_lease
authorVolker Lendecke <vl@samba.org>
Fri, 14 Sep 2018 14:10:58 +0000 (16:10 +0200)
committerStefan Metzmacher <metze@samba.org>
Tue, 2 Oct 2018 16:13:20 +0000 (18:13 +0200)
commit56139b8ec621d47d542042e7aa512aa07fd53fd0
tree855aac9e3921ca25097165e4c961daacd84a503c
parent664808af09bf42206af2ce15c9e9b5d773ab56ca
smbd: Simplify downgrade_lease

To me, the "additive" SMB2_LEASE_WRITE|SMB2_LEASE_HANDLE is easier to
read than the negated ~SMB2_LEASE_READ.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
source3/smbd/oplock.c