summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2011-12-13 13:56:49 +0100
committerVolker Lendecke <vlendec@samba.org>2011-12-13 17:27:26 +0100
commit2d2d72e479142ad7d1a40955793bcf63d5b4ee14 (patch)
tree0cc222b1492156df34e98f98519baf2a626895a7 /source3
parent3239c722aa528a4f00f3201425182f7f105dbfe2 (diff)
downloadsamba-2d2d72e479142ad7d1a40955793bcf63d5b4ee14.tar.gz
samba-2d2d72e479142ad7d1a40955793bcf63d5b4ee14.tar.bz2
samba-2d2d72e479142ad7d1a40955793bcf63d5b4ee14.zip
s3: Remove an else{} in remove_deferred_open_entry
Diffstat (limited to 'source3')
-rw-r--r--source3/smbd/open.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/smbd/open.c b/source3/smbd/open.c
index a697ee86b5..ee0ba082f8 100644
--- a/source3/smbd/open.c
+++ b/source3/smbd/open.c
@@ -1548,10 +1548,10 @@ void remove_deferred_open_entry(struct file_id id, uint64_t mid,
NULL, NULL, NULL);
if (lck == NULL) {
DEBUG(0, ("could not get share mode lock\n"));
- } else {
- del_deferred_open_entry(lck, mid, pid);
- TALLOC_FREE(lck);
+ return;
}
+ del_deferred_open_entry(lck, mid, pid);
+ TALLOC_FREE(lck);
}
/****************************************************************