summaryrefslogtreecommitdiffstats
path: root/src/db
diff options
context:
space:
mode:
authorPavel Reichl <pavel.reichl@redhat.com>2013-12-18 14:13:31 +0000
committerJakub Hrozek <jhrozek@redhat.com>2013-12-18 17:03:27 +0100
commit5f796c17ca4a7391ebe90f227912e009372f18e8 (patch)
treea2d1eab6a98c3fcf749428b5a1d3f8e6fb4e5ac1 /src/db
parent953e10a2f89bf1e21ffd4d8ebc9e1f84fbdb676d (diff)
downloadsssd-5f796c17ca4a7391ebe90f227912e009372f18e8.tar.gz
sssd-5f796c17ca4a7391ebe90f227912e009372f18e8.tar.xz
sssd-5f796c17ca4a7391ebe90f227912e009372f18e8.zip
SYSDB: simplification of condition in if statement
else-if statement is checking for condition which is handled by previous if statement.
Diffstat (limited to 'src/db')
-rw-r--r--src/db/sysdb_search.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/db/sysdb_search.c b/src/db/sysdb_search.c
index 53c8f0164..83681384f 100644
--- a/src/db/sysdb_search.c
+++ b/src/db/sysdb_search.c
@@ -932,7 +932,7 @@ errno_t sysdb_get_direct_parents(TALLOC_CTX *mem_ctx,
&direct_sysdb_count, &direct_sysdb_groups);
if (ret == ENOENT) {
direct_sysdb_count = 0;
- } else if (ret != EOK && ret != ENOENT) {
+ } else if (ret != EOK) {
DEBUG(2, ("sysdb_search_entry failed: [%d]: %s\n",
ret, strerror(ret)));
goto done;