1
0
mirror of https://github.com/systemd/systemd.git synced 2024-10-28 11:55:44 +03:00

logind: remove redundant check in manager_new()

This commit is contained in:
Maciej Wereski 2014-02-19 11:39:00 +01:00 committed by Lennart Poettering
parent 7bb2954901
commit d1368aa9bd

View File

@ -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;
}