s3: Do an early return in close_remove_share_mode
authorVolker Lendecke <vl@samba.org>
Fri, 1 Jun 2012 14:42:29 +0000 (16:42 +0200)
committerStefan Metzmacher <metze@samba.org>
Sun, 3 Jun 2012 15:23:28 +0000 (17:23 +0200)
Without "lck" we don't have much to clean up

Signed-off-by: Stefan Metzmacher <metze@samba.org>
source3/smbd/close.c

index d3232aae4f78a21195c2315bc139c691ceea9701..9b7e7ac7f505596e9fe4ba49665c77df9fbfcc0c 100644 (file)
@@ -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) {