summaryrefslogtreecommitdiff
path: root/source3/passdb
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2012-06-19 10:26:58 -0700
committerJeremy Allison <jra@samba.org>2012-06-19 21:17:51 +0200
commit671f61018d67ce0d14398de9922074511148a383 (patch)
treed5e95624e950f94c9a137fdc229da1f65c6b56e7 /source3/passdb
parent028a7d9b288bb2662bb45ccaff9cf9e7bc76a487 (diff)
downloadsamba-671f61018d67ce0d14398de9922074511148a383.tar.gz
samba-671f61018d67ce0d14398de9922074511148a383.tar.bz2
samba-671f61018d67ce0d14398de9922074511148a383.zip
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
Diffstat (limited to 'source3/passdb')
-rw-r--r--source3/passdb/pdb_ipa.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/source3/passdb/pdb_ipa.c b/source3/passdb/pdb_ipa.c
index 74ac6774a4..c4c3bc8e11 100644
--- a/source3/passdb/pdb_ipa.c
+++ b/source3/passdb/pdb_ipa.c
@@ -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;
}