]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
smbd: Remove an unnecessary if-statement
authorVolker Lendecke <vl@samba.org>
Fri, 30 Dec 2022 21:22:31 +0000 (22:22 +0100)
committerRalph Boehme <slow@samba.org>
Wed, 4 Jan 2023 08:54:32 +0000 (08:54 +0000)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/smbd/smb2_trans2.c

index 00f3b6fb3c3c0516e6b756e58761fce49385cb8f..e3df036344219fe3867251b74e0996c6f523ee3b 100644 (file)
@@ -2936,10 +2936,7 @@ static unsigned int count_acl_entries(connection_struct *conn, SMB_ACL_T posix_a
        SMB_ACL_ENTRY_T entry;
 
        while ( posix_acl && (sys_acl_get_entry(posix_acl, entry_id, &entry) == 1)) {
-               /* get_next... */
-               if (entry_id == SMB_ACL_FIRST_ENTRY) {
-                       entry_id = SMB_ACL_NEXT_ENTRY;
-               }
+               entry_id = SMB_ACL_NEXT_ENTRY;
                ace_count++;
        }
        return ace_count;