summaryrefslogtreecommitdiff
path: root/source3/smbd/close.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/smbd/close.c')
-rw-r--r--source3/smbd/close.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/source3/smbd/close.c b/source3/smbd/close.c
index d3232aae4f..9b7e7ac7f5 100644
--- a/source3/smbd/close.c
+++ b/source3/smbd/close.c
@@ -361,8 +361,7 @@ static NTSTATUS close_remove_share_mode(files_struct *fsp,
if (lck == NULL) {
DEBUG(0, ("close_remove_share_mode: Could not get share mode "
"lock for file %s\n", fsp_str_dbg(fsp)));
- status = NT_STATUS_INVALID_PARAMETER;
- goto done;
+ return NT_STATUS_INVALID_PARAMETER;
}
if (fsp->write_time_forced) {