]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
core: no need to initialize swap structure fields if all zeroes anyway
authorLennart Poettering <lennart@poettering.net>
Thu, 9 Jan 2020 16:01:46 +0000 (17:01 +0100)
committerLennart Poettering <lennart@poettering.net>
Thu, 9 Jan 2020 16:08:27 +0000 (17:08 +0100)
src/core/swap.c

index 03f443daecfba8396019cb21a35ce331db543109..6caf20ea664a360372387155bdf60e3a81ec880f 100644 (file)
@@ -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;