From da6bc6ed05f04561aff6f995fc457d42d892c049 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Thu, 7 Mar 2019 16:55:19 +0100 Subject: [PATCH] execute: no need to check for NULL when function right after does anyway --- src/core/execute.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/core/execute.c b/src/core/execute.c index 8f0e80290c..4a0ffe198a 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) {