mirror of
https://github.com/systemd/systemd.git
synced 2025-01-26 14:04:03 +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);
|
||||
|
||||
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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user