mirror of
https://github.com/systemd/systemd.git
synced 2024-11-05 15:21:37 +03:00
core: no need to initialize swap structure fields if all zeroes anyway
This commit is contained in:
parent
6d9e0ca400
commit
6afc31615e
@ -63,7 +63,6 @@ static void swap_unset_proc_swaps(Swap *s) {
|
||||
return;
|
||||
|
||||
s->parameters_proc_swaps.what = mfree(s->parameters_proc_swaps.what);
|
||||
|
||||
s->from_proc_swaps = false;
|
||||
}
|
||||
|
||||
@ -117,9 +116,6 @@ static void swap_init(Unit *u) {
|
||||
s->exec_context.std_output = u->manager->default_std_output;
|
||||
s->exec_context.std_error = u->manager->default_std_error;
|
||||
|
||||
s->parameters_proc_swaps.priority = s->parameters_fragment.priority = 0;
|
||||
s->parameters_fragment.priority_set = false;
|
||||
|
||||
s->control_command_id = _SWAP_EXEC_COMMAND_INVALID;
|
||||
|
||||
u->ignore_on_isolate = true;
|
||||
|
Loading…
Reference in New Issue
Block a user