summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2013-09-11 09:31:36 +0000
committerStefan Metzmacher <metze@samba.org>2013-10-06 15:49:43 +0200
commitf650bb94c8b79bec87c2a1f17b573c27e0ef1b1b (patch)
treed5c6c75a7c1f8b835a7ce4072fa7d2f9992e7b69
parente9513bc6ab2974899a3f6ddc73886e969b142502 (diff)
downloadsamba-f650bb94c8b79bec87c2a1f17b573c27e0ef1b1b.tar.gz
samba-f650bb94c8b79bec87c2a1f17b573c27e0ef1b1b.tar.bz2
samba-f650bb94c8b79bec87c2a1f17b573c27e0ef1b1b.zip
smbd: Remove unused "brl->key" struct element
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
-rw-r--r--source3/locking/brlock.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/source3/locking/brlock.c b/source3/locking/brlock.c
index adbfc5fb65..ee4354c964 100644
--- a/source3/locking/brlock.c
+++ b/source3/locking/brlock.c
@@ -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) {