From 5ff189fbc8135d5900ac97120c587128a35f56eb Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Pavel=20B=C5=99ezina?= <pbrezina@redhat.com>
Date: Wed, 13 Jul 2016 10:41:00 +0200
Subject: [PATCH 30/31] sssctl: improve readability of a condition
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Reviewed-by: Fabiano FidĂȘncio <fabiano@fidencio.org>
(cherry picked from commit aa691837a2fa2fe2e38a55d576644074e0f45bd8)
---
src/tools/sssctl/sssctl_cache.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/tools/sssctl/sssctl_cache.c b/src/tools/sssctl/sssctl_cache.c
index 3e7644e327eb3e5a0e33023e7a3f5f0f15e03cf6..22e3fad89e3c1bbfce48439b43acd2346da3e56f 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) {
--
2.4.11