git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bb2c52a
)
Trivial simplification
author
Volker Lendecke
<vl@samba.org>
Sat, 12 Jan 2008 22:05:23 +0000
(23:05 +0100)
committer
Volker Lendecke
<vl@samba.org>
Sat, 12 Jan 2008 22:57:11 +0000
(23:57 +0100)
(This used to be commit
616bc34744487450edd47e212a29c0f57eabb722
)
source3/locking/locking.c
patch
|
blob
|
history
diff --git
a/source3/locking/locking.c
b/source3/locking/locking.c
index 113b994bc72108e5989459e9e65e92818f5c0550..bae4518575452d0ce9834a1f97e64134f90a2c81 100644
(file)
--- a/
source3/locking/locking.c
+++ b/
source3/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);