diff options
author | Volker Lendecke <vl@samba.org> | 2008-01-12 23:05:23 +0100 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2008-01-12 23:57:11 +0100 |
commit | 616bc34744487450edd47e212a29c0f57eabb722 (patch) | |
tree | d78657e38d9a331db74d431f3a73469125983202 /source/locking | |
parent | 24e719a1d432d5de022ab903457df0dd67c24b85 (diff) | |
download | samba-616bc34744487450edd47e212a29c0f57eabb722.tar.gz samba-616bc34744487450edd47e212a29c0f57eabb722.tar.xz samba-616bc34744487450edd47e212a29c0f57eabb722.zip |
Trivial simplification
Diffstat (limited to 'source/locking')
-rw-r--r-- | source/locking/locking.c | 6 |
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); |