summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPavel Březina <pbrezina@redhat.com>2016-07-13 10:41:00 +0200
committerJakub Hrozek <jhrozek@redhat.com>2016-07-13 12:08:04 +0200
commitaa691837a2fa2fe2e38a55d576644074e0f45bd8 (patch)
treea0e4946336e1f19dac447212b2d7f7daa1a87958
parent3c6e15e8aa38d9dfa02a7255fad56149bdfb35a6 (diff)
downloadsssd-aa691837a2fa2fe2e38a55d576644074e0f45bd8.zip
sssd-aa691837a2fa2fe2e38a55d576644074e0f45bd8.tar.gz
sssd-aa691837a2fa2fe2e38a55d576644074e0f45bd8.tar.xz
sssctl: improve readability of a condition
Reviewed-by: Fabiano Fidêncio <fabiano@fidencio.org>
-rw-r--r--src/tools/sssctl/sssctl_cache.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/tools/sssctl/sssctl_cache.c b/src/tools/sssctl/sssctl_cache.c
index 3e7644e..22e3fad 100644
--- a/src/tools/sssctl/sssctl_cache.c
+++ b/src/tools/sssctl/sssctl_cache.c
@@ -296,10 +296,10 @@ static const char *sssctl_create_filter(TALLOC_CTX *mem_ctx,
char *filter_value;
bool qualify_attr = false;
- if (strcmp(attr_name, SYSDB_NAME) == 0 &&
- (obj_type == CACHED_USER ||
- obj_type == CACHED_GROUP)) {
- qualify_attr = true;
+ if (strcmp(attr_name, SYSDB_NAME) == 0) {
+ if (obj_type == CACHED_USER || obj_type == CACHED_GROUP) {
+ qualify_attr = true;
+ }
}
switch (obj_type) {