diff options
author | Volker Lendecke <vl@samba.org> | 2018-10-05 11:34:41 +0200 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2018-10-08 22:17:11 +0200 |
commit | f6137454b5aa0e3bac696723b785003ede19c9ef (patch) | |
tree | a2ade203d7587cd9a9f4ef1aec81b0a1c4f34fef /source3/passdb | |
parent | 2329518f32d3c772ddd8d6a27c62b18ff4de221a (diff) | |
download | samba-f6137454b5aa0e3bac696723b785003ede19c9ef.tar.gz |
pdb: Fix some "(ret == true)" to just "(ret)"
"ret" is a boolean, so this should not change semantics
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3/passdb')
-rw-r--r-- | source3/passdb/pdb_interface.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/passdb/pdb_interface.c b/source3/passdb/pdb_interface.c index 8b23da6b979..315da52f01b 100644 --- a/source3/passdb/pdb_interface.c +++ b/source3/passdb/pdb_interface.c @@ -1238,7 +1238,7 @@ bool pdb_sid_to_id(const struct dom_sid *sid, struct unixid *id) ret = pdb->sid_to_id(pdb, sid, id); - if (ret == true) { + if (ret) { idmap_cache_set_sid2unixid(sid, id); } @@ -1540,7 +1540,7 @@ static bool pdb_default_sid_to_id(struct pdb_methods *methods, * "Unix User" and "Unix Group" */ ret = pdb_sid_to_id_unix_users_and_groups(sid, id); - if (ret == true) { + if (ret) { goto done; } |