smbd: Simplify share_mode_entry_do()
authorVolker Lendecke <vl@samba.org>
Thu, 17 Dec 2020 11:36:42 +0000 (12:36 +0100)
committerJeremy Allison <jra@samba.org>
Fri, 4 Jun 2021 16:47:34 +0000 (16:47 +0000)
commit581ebbcc312ba88e02a3b2d9a4776d5e6db39135
treebfb2f56f0bab3a646cb02c2493861f5111033afd
parentc2092cfc4489ad245ffd40bb4865e64ee37fadc2
smbd: Simplify share_mode_entry_do()

Looking at the logic of "ha[d|ve]_share_mode_entry" d->modified=true
can only happen if we remove the last share mode entry . Make this
more explicit, avoid booleans.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/locking/share_mode_lock.c