summaryrefslogtreecommitdiffstats
path: root/source/locking
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2008-01-12 23:05:23 +0100
committerVolker Lendecke <vl@samba.org>2008-01-12 23:57:11 +0100
commit616bc34744487450edd47e212a29c0f57eabb722 (patch)
treed78657e38d9a331db74d431f3a73469125983202 /source/locking
parent24e719a1d432d5de022ab903457df0dd67c24b85 (diff)
downloadsamba-616bc34744487450edd47e212a29c0f57eabb722.tar.gz
samba-616bc34744487450edd47e212a29c0f57eabb722.tar.xz
samba-616bc34744487450edd47e212a29c0f57eabb722.zip
Trivial simplification
Diffstat (limited to 'source/locking')
-rw-r--r--source/locking/locking.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/source/locking/locking.c b/source/locking/locking.c
index 113b994bc72..bae45185754 100644
--- a/source/locking/locking.c
+++ b/source/locking/locking.c
@@ -1281,11 +1281,7 @@ static UNIX_USER_TOKEN *copy_unix_token(TALLOC_CTX *ctx, UNIX_USER_TOKEN *tok)
void set_delete_on_close_token(struct share_mode_lock *lck, UNIX_USER_TOKEN *tok)
{
- /* Ensure there's no token. */
- if (lck->delete_token) {
- TALLOC_FREE(lck->delete_token); /* Also deletes groups... */
- lck->delete_token = NULL;
- }
+ TALLOC_FREE(lck->delete_token); /* Also deletes groups... */
/* Copy the new token (can be NULL). */
lck->delete_token = copy_unix_token(lck, tok);