diff options
author | Noel Power <noel.power@suse.com> | 2019-07-03 14:56:55 +0000 |
---|---|---|
committer | Noel Power <npower@samba.org> | 2019-07-08 09:30:10 +0000 |
commit | 50a22849ce11aebead43e39ea42541afdd987408 (patch) | |
tree | 0c3a6487652dc9252648bc9365f629ccdf33ff23 /source4 | |
parent | 109b438181563ed0074780df59a77bcdd7793e9d (diff) | |
download | samba-50a22849ce11aebead43e39ea42541afdd987408.tar.gz |
s4/dsdb/schema: Fix 'Value stored to 'ret' is never read'
Fixes:
source4/dsdb/schema/schema_set.c:274:3: warning: Value stored to 'ret' is never read <--[clang]
ret = LDB_SUCCESS;
^ ~~~~~~~~~~~
source4/dsdb/schema/schema_set.c:327:3: warning: Value stored to 'ret' is never read <--[clang]
ret = LDB_SUCCESS;
^ ~~~~~~~~~~~
Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
Diffstat (limited to 'source4')
-rw-r--r-- | source4/dsdb/schema/schema_set.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/source4/dsdb/schema/schema_set.c b/source4/dsdb/schema/schema_set.c index 258cbb81f25..b316686fd03 100644 --- a/source4/dsdb/schema/schema_set.c +++ b/source4/dsdb/schema/schema_set.c @@ -271,7 +271,6 @@ int dsdb_schema_set_indices_and_attributes(struct ldb_context *ldb, } ret = ldb_add(ldb, msg); } else { - ret = LDB_SUCCESS; /* Annoyingly added to our search results */ ldb_msg_remove_attr(res->msgs[0], "distinguishedName"); @@ -324,7 +323,6 @@ int dsdb_schema_set_indices_and_attributes(struct ldb_context *ldb, } ret = ldb_add(ldb, msg_idx); } else { - ret = LDB_SUCCESS; /* Annoyingly added to our search results */ ldb_msg_remove_attr(res_idx->msgs[0], "distinguishedName"); |