smbd: Remove unused "brl->key" struct element
[mat/samba.git] / 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) {