smbd: Remove unused "brl->key" struct element
authorVolker Lendecke <vl@samba.org>
Wed, 11 Sep 2013 09:31:36 +0000 (09:31 +0000)
committerStefan Metzmacher <metze@samba.org>
Sun, 6 Oct 2013 13:49:43 +0000 (15:49 +0200)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Sun Oct  6 15:49:43 CEST 2013 on sn-devel-104

source3/locking/brlock.c

index adbfc5fb6569607986d1850058c93a85448abaf9..ee4354c9647f812f5d62e3ab266ef57be64f426e 100644 (file)
@@ -48,7 +48,6 @@ struct byte_range_lock {
        unsigned int num_locks;
        bool modified;
        bool read_only;
-       struct file_id key;
        struct lock_struct *lock_data;
        struct db_record *record;
 };
@@ -1944,9 +1943,8 @@ static struct byte_range_lock *brl_get_locks_internal(TALLOC_CTX *mem_ctx,
        br_lck->fsp = fsp;
        br_lck->num_locks = 0;
        br_lck->modified = False;
-       br_lck->key = fsp->file_id;
 
-       key.dptr = (uint8 *)&br_lck->key;
+       key.dptr = (uint8 *)&fsp->file_id;
        key.dsize = sizeof(struct file_id);
 
        if (!fsp->lockdb_clean) {