[systemd-devel] [PATCH 1/2] logind: remove redundant check in manager_new()

Maciej Wereski m.wereski at partner.samsung.com
Wed Feb 19 02:39:00 PST 2014


---
 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 2add241..7aea3cd 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;
         }
-- 
1.9.0



More information about the systemd-devel mailing list