From: Lennart Poettering Date: Thu, 9 Jan 2020 16:01:46 +0000 (+0100) Subject: core: no need to initialize swap structure fields if all zeroes anyway X-Git-Tag: v245-rc1~149^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6afc31615e63b7db941684be84da82a06373a778;p=thirdparty%2Fsystemd.git core: no need to initialize swap structure fields if all zeroes anyway --- diff --git a/src/core/swap.c b/src/core/swap.c index 03f443daecf..6caf20ea664 100644 --- a/src/core/swap.c +++ b/src/core/swap.c @@ -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;