From d1368aa9bd2f5748152ed0663566c0baa854dfc5 Mon Sep 17 00:00:00 2001 From: Maciej Wereski Date: Wed, 19 Feb 2014 11:39:00 +0100 Subject: logind: remove redundant check in manager_new() --- src/login/logind.c | 3 +-- 1 file changed, 1 insertion(+), 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; } -- cgit v1.2.3-54-g00ecf