From 5f796c17ca4a7391ebe90f227912e009372f18e8 Mon Sep 17 00:00:00 2001 From: Pavel Reichl Date: Wed, 18 Dec 2013 14:13:31 +0000 Subject: SYSDB: simplification of condition in if statement else-if statement is checking for condition which is handled by previous if statement. --- src/db/sysdb_search.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/db/sysdb_search.c b/src/db/sysdb_search.c index 53c8f016..83681384 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; -- cgit