mirror of
https://github.com/systemd/systemd.git
synced 2025-01-27 18:04:05 +03:00
logind: remove redundant check in manager_new()
This commit is contained in:
parent
7bb2954901
commit
d1368aa9bd
@ -73,8 +73,7 @@ Manager *manager_new(void) {
|
|||||||
m->busnames = set_new(string_hash_func, string_compare_func);
|
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 ||
|
if (!m->devices || !m->seats || !m->sessions || !m->users || !m->inhibitors || !m->buttons || !m->busnames ||
|
||||||
!m->user_units || !m->session_units ||
|
!m->user_units || !m->session_units) {
|
||||||
!m->busnames) {
|
|
||||||
manager_free(m);
|
manager_free(m);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user