Trivial simplification
authorVolker Lendecke <vl@samba.org>
Sat, 12 Jan 2008 22:05:23 +0000 (23:05 +0100)
committerVolker Lendecke <vl@samba.org>
Sat, 12 Jan 2008 22:57:11 +0000 (23:57 +0100)
source/locking/locking.c

index 113b994bc72108e5989459e9e65e92818f5c0550..bae4518575452d0ce9834a1f97e64134f90a2c81 100644 (file)
@@ -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);