Remove unused variables.
authorJeremy Allison <jra@samba.org>
Tue, 19 Jun 2012 17:18:28 +0000 (10:18 -0700)
committerJeremy Allison <jra@samba.org>
Tue, 19 Jun 2012 17:27:24 +0000 (10:27 -0700)
source3/winbindd/idmap_adex/idmap_adex.c

index 7440d5c611a7226f5e5240423f8fc6f6202cc5be..d64487a2d68d753269d8d00a6475242a66290cec 100644 (file)
@@ -155,8 +155,6 @@ static NTSTATUS _idmap_adex_get_sid_from_id(struct
                                                **ids)
 {
        int i;
-       bool one_mapped = false;
-       bool all_mapped = true;
        NTSTATUS nt_status;
         struct likewise_cell *cell;
 
@@ -187,12 +185,10 @@ static NTSTATUS _idmap_adex_get_sid_from_id(struct
 
                if (!NT_STATUS_IS_OK(status)) {
                        ids[i]->status = ID_UNMAPPED;
-                       all_mapped = false;
                        continue;
                }
 
                ids[i]->status = ID_MAPPED;
-               one_mapped = true;
        }
 
        return NT_STATUS_OK;
@@ -208,8 +204,6 @@ static NTSTATUS _idmap_adex_get_id_from_sid(struct
                                                **ids)
 {
        int i;
-       bool one_mapped = false;
-       bool all_mapped = true;
        NTSTATUS nt_status;
         struct likewise_cell *cell;
 
@@ -240,12 +234,10 @@ static NTSTATUS _idmap_adex_get_id_from_sid(struct
 
                if (!NT_STATUS_IS_OK(status)) {
                        ids[i]->status = ID_UNMAPPED;
-                       all_mapped = false;
                        continue;
                }
 
                ids[i]->status = ID_MAPPED;
-               one_mapped = true;
        }
 
        return NT_STATUS_OK;