]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
smbd: Remove an unnecessary if-statement
authorVolker Lendecke <vl@samba.org>
Fri, 30 Dec 2022 21:21:48 +0000 (22:21 +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 fea88900ed2a66ef881afcdbd724af0132a03bbc..00f3b6fb3c3c0516e6b756e58761fce49385cb8f 100644 (file)
@@ -2960,10 +2960,7 @@ static bool marshall_posix_acl(connection_struct *conn, char *pdata, SMB_STRUCT_
                unsigned char perms = 0;
                unsigned int own_grp;
 
-               /* get_next... */
-               if (entry_id == SMB_ACL_FIRST_ENTRY) {
-                       entry_id = SMB_ACL_NEXT_ENTRY;
-               }
+               entry_id = SMB_ACL_NEXT_ENTRY;
 
                if (sys_acl_get_tag_type(entry, &tagtype) == -1) {
                        DEBUG(0,("marshall_posix_acl: SMB_VFS_SYS_ACL_GET_TAG_TYPE failed.\n"));