From: Lennart Poettering Date: Thu, 7 Mar 2019 15:55:19 +0000 (+0100) Subject: execute: no need to check for NULL when function right after does anyway X-Git-Tag: v242-rc1~158^2~5 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=da6bc6ed05f04561aff6f995fc457d42d892c049;p=thirdparty%2Fsystemd.git execute: no need to check for NULL when function right after does anyway --- diff --git a/src/core/execute.c b/src/core/execute.c index 8f0e80290cc..4a0ffe198a2 100644 --- a/src/core/execute.c +++ b/src/core/execute.c @@ -4860,8 +4860,7 @@ static ExecRuntime* exec_runtime_free(ExecRuntime *rt, bool destroy) { } static void exec_runtime_freep(ExecRuntime **rt) { - if (*rt) - (void) exec_runtime_free(*rt, false); + (void) exec_runtime_free(*rt, false); } static int exec_runtime_allocate(ExecRuntime **ret) {