s3: Remove a pointless else branch
authorVolker Lendecke <vl@samba.org>
Sat, 18 Feb 2012 15:49:47 +0000 (16:49 +0100)
committerVolker Lendecke <vl@samba.org>
Sun, 19 Feb 2012 22:14:15 +0000 (23:14 +0100)
Autobuild-User: Volker Lendecke <vl@samba.org>
Autobuild-Date: Sun Feb 19 23:14:15 CET 2012 on sn-devel-104

source3/smbd/open.c

index e9637c8..356a08f 100644 (file)
@@ -201,9 +201,8 @@ NTSTATUS smbd_check_access_rights(struct connection_struct *conn,
 
        if (rejected_mask != 0) {
                return NT_STATUS_ACCESS_DENIED;
-       } else {
-               return NT_STATUS_OK;
        }
+       return NT_STATUS_OK;
 }
 
 static NTSTATUS check_parent_access(struct connection_struct *conn,