summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMaciej Wereski <m.wereski@partner.samsung.com>2014-02-19 11:39:00 +0100
committerLennart Poettering <lennart@poettering.net>2014-02-19 16:24:13 +0100
commitd1368aa9bd2f5748152ed0663566c0baa854dfc5 (patch)
tree790cbd701608be4e267c9e98a3214aff7a25f4bb /src
parent7bb2954901b2e568efaf67254e480032e0958cad (diff)
logind: remove redundant check in manager_new()
Diffstat (limited to 'src')
-rw-r--r--src/login/logind.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/login/logind.c b/src/login/logind.c
index 2add241066..7aea3cdcb1 100644
--- a/src/login/logind.c
+++ b/src/login/logind.c
@@ -73,8 +73,7 @@ Manager *manager_new(void) {
m->busnames = set_new(string_hash_func, string_compare_func);
if (!m->devices || !m->seats || !m->sessions || !m->users || !m->inhibitors || !m->buttons || !m->busnames ||
- !m->user_units || !m->session_units ||
- !m->busnames) {
+ !m->user_units || !m->session_units) {
manager_free(m);
return NULL;
}