1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

idmap_autorid: Slightly simplify idmap_autorid_unixids_to_sids

Avoid an else branch where it's not necessary

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
This commit is contained in:
Volker Lendecke 2016-11-30 18:35:55 +01:00
parent 321dca7820
commit 5ee846fabf

View File

@ -340,7 +340,8 @@ static NTSTATUS idmap_autorid_unixids_to_sids(struct idmap_domain *dom,
if (num_tomap == num_mapped) {
return NT_STATUS_OK;
} else if (num_mapped == 0) {
}
if (num_mapped == 0) {
return NT_STATUS_NONE_MAPPED;
}