]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
smbd: Remove a comment that was not helpful for me
authorVolker Lendecke <vl@samba.org>
Thu, 3 Dec 2020 16:03:32 +0000 (17:03 +0100)
committerJeremy Allison <jra@samba.org>
Fri, 4 Dec 2020 21:08:39 +0000 (21:08 +0000)
Also avoid an "else" branch

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/locking/share_mode_lock.c

index 2592c9efa4c807f92f9af01b8753afa020fe242b..98fa9f019a5bc77caef16eadfed30a950dcd464c 100644 (file)
@@ -988,17 +988,9 @@ static int share_mode_lock_destructor(struct share_mode_lock *lck)
                 */
                share_mode_memcache_store(static_share_mode_data);
                static_share_mode_data = NULL;
-       } else {
-               /*
-                * The next opener of this file will find an empty
-                * locking.tdb record. Don't store the share_mode_data
-                * in the memcache, fresh_share_mode_lock() will
-                * generate a fresh seqnum anyway, obsoleting the
-                * cache entry.
-                */
-               TALLOC_FREE(static_share_mode_data);
        }
 
+       TALLOC_FREE(static_share_mode_data);
        return 0;
 }