mirror of
https://github.com/samba-team/samba.git
synced 2025-03-11 16:58:40 +03:00
libcli: Avoid an unnecessary "else"
We return in the if-branch Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Pavel Filipenský <pfilipensky@samba.org>
This commit is contained in:
parent
8ed1b9e874
commit
3b2134e231
@ -298,7 +298,8 @@ static NTSTATUS security_descriptor_acl_add(struct security_descriptor *sd,
|
||||
|
||||
if (idx < 0) {
|
||||
return NT_STATUS_ARRAY_BOUNDS_EXCEEDED;
|
||||
} else if (idx > acl->num_aces) {
|
||||
}
|
||||
if (idx > acl->num_aces) {
|
||||
return NT_STATUS_ARRAY_BOUNDS_EXCEEDED;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user