mirror of
https://github.com/samba-team/samba.git
synced 2025-02-24 13:57:43 +03:00
ldb: Improve coding style in ldb_kv_index_dn_simple()
We avoid bare if conditions in Samba. BUG: https://bugzilla.samba.org/show_bug.cgi?id=14299 Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
This commit is contained in:
parent
0a87f59ac2
commit
48cfb8458b
@ -1282,7 +1282,9 @@ static int ldb_kv_index_dn_simple(struct ldb_module *module,
|
|||||||
* as ltdb_search_indexed will filter out the wrong one in
|
* as ltdb_search_indexed will filter out the wrong one in
|
||||||
* ltdb_index_filter() which calls ldb_match_message().
|
* ltdb_index_filter() which calls ldb_match_message().
|
||||||
*/
|
*/
|
||||||
if (!dn) return LDB_ERR_OPERATIONS_ERROR;
|
if (!dn) {
|
||||||
|
return LDB_ERR_OPERATIONS_ERROR;
|
||||||
|
}
|
||||||
|
|
||||||
ret = ldb_kv_dn_list_load(module, ldb_kv, dn, list,
|
ret = ldb_kv_dn_list_load(module, ldb_kv, dn, list,
|
||||||
DN_LIST_WILL_BE_READ_ONLY);
|
DN_LIST_WILL_BE_READ_ONLY);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user