mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +03:00
Fix unused variable warnings.
Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Tue Jun 19 21:17:51 CEST 2012 on sn-devel-104
This commit is contained in:
parent
028a7d9b28
commit
671f61018d
@ -1301,7 +1301,6 @@ static NTSTATUS ipasam_create_dom_group(struct pdb_methods *pdb_methods,
|
||||
{
|
||||
NTSTATUS status;
|
||||
struct ldapsam_privates *ldap_state;
|
||||
int ldap_op = LDAP_MOD_REPLACE;
|
||||
char *dn;
|
||||
uint32_t has_objectclass = 0;
|
||||
|
||||
@ -1312,11 +1311,8 @@ static NTSTATUS ipasam_create_dom_group(struct pdb_methods *pdb_methods,
|
||||
}
|
||||
|
||||
status = find_group(ldap_state, name, &dn, &has_objectclass);
|
||||
if (NT_STATUS_IS_OK(status)) {
|
||||
ldap_op = LDAP_MOD_REPLACE;
|
||||
} else if (NT_STATUS_EQUAL(status, NT_STATUS_NO_SUCH_USER)) {
|
||||
ldap_op = LDAP_MOD_ADD;
|
||||
} else {
|
||||
if (!NT_STATUS_IS_OK(status) &&
|
||||
!NT_STATUS_EQUAL(status, NT_STATUS_NO_SUCH_USER)) {
|
||||
return status;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user