From: Volker Lendecke Date: Fri, 30 Dec 2022 21:21:48 +0000 (+0100) Subject: smbd: Remove an unnecessary if-statement X-Git-Tag: talloc-2.4.0~87 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=65fc2b105a30718cf33241e851f66c345ff2e3e5;p=thirdparty%2Fsamba.git smbd: Remove an unnecessary if-statement Signed-off-by: Volker Lendecke Reviewed-by: Ralph Boehme --- diff --git a/source3/smbd/smb2_trans2.c b/source3/smbd/smb2_trans2.c index fea88900ed2..00f3b6fb3c3 100644 --- a/source3/smbd/smb2_trans2.c +++ b/source3/smbd/smb2_trans2.c @@ -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"));