smbd: Simplify get_share_mode_lock a bit
authorVolker Lendecke <vl@samba.org>
Fri, 6 Dec 2013 07:40:03 +0000 (07:40 +0000)
committerStefan Metzmacher <metze@samba.org>
Sat, 14 Dec 2013 09:08:56 +0000 (10:08 +0100)
commit7ae77a5d265e5ac4d1006528a178c1d777599f39
treeef928ce8a59ba8139b179b7c4956057f205850e2
parentfd94f8248198dc943f8b3107b944e971b5e742ce
smbd: Simplify get_share_mode_lock a bit

This does two things: It gets rid of a talloc_stackframe in a hot
code path and to me it makes the code easier to understand. It makes
the talloc hierarchy more obvious to follow.

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