From: Volker Lendecke Date: Fri, 30 Dec 2022 21:22:31 +0000 (+0100) Subject: smbd: Remove an unnecessary if-statement X-Git-Tag: talloc-2.4.0~86 X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=0cfea6079270de7a9b420cb3ad34e31cfdd5d037;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 00f3b6fb3c3..e3df0363442 100644 --- a/source3/smbd/smb2_trans2.c +++ b/source3/smbd/smb2_trans2.c @@ -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;