smbd: Avoid duplicate assignments
authorVolker Lendecke <vl@samba.org>
Mon, 26 Aug 2019 14:45:14 +0000 (16:45 +0200)
committerJeremy Allison <jra@samba.org>
Tue, 17 Sep 2019 22:49:38 +0000 (22:49 +0000)
remove_share_mode_lease() already does this

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

index e7b8fd3a503425cf7b924a71a296b00f6f8c3fd0..6e1e577b4688f90d5f0c5597e686c6292cc57bb3 100644 (file)
@@ -889,7 +889,6 @@ bool del_share_mode(struct share_mode_lock *lck, files_struct *fsp)
        remove_share_mode_lease(lck->data, e);
        *e = lck->data->share_modes[lck->data->num_share_modes-1];
        lck->data->num_share_modes -= 1;
-       lck->data->modified = True;
        return True;
 }
 
@@ -949,7 +948,6 @@ bool remove_share_oplock(struct share_mode_lock *lck, files_struct *fsp)
        }
 
        remove_share_mode_lease(d, e);
-       d->modified = True;
        return true;
 }