mirror of
https://github.com/morgan9e/systemd
synced 2026-04-15 00:47:10 +09:00
core/varlink: drop duplicated check
Those are static functions that are only called from manager_varlink_init which already does the same check.
This commit is contained in:
@@ -425,9 +425,6 @@ static int manager_varlink_init_system(Manager *m) {
|
||||
|
||||
assert(m);
|
||||
|
||||
if (!MANAGER_IS_SYSTEM(m))
|
||||
return 0;
|
||||
|
||||
r = manager_setup_varlink_server(m);
|
||||
if (r < 0)
|
||||
return log_error_errno(r, "Failed to set up varlink server: %m");
|
||||
@@ -456,9 +453,6 @@ static int manager_varlink_init_user(Manager *m) {
|
||||
|
||||
assert(m);
|
||||
|
||||
if (!MANAGER_IS_USER(m))
|
||||
return 0;
|
||||
|
||||
if (MANAGER_IS_TEST_RUN(m))
|
||||
return 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user