]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
execute: no need to check for NULL when function right after does anyway
authorLennart Poettering <lennart@poettering.net>
Thu, 7 Mar 2019 15:55:19 +0000 (16:55 +0100)
committerLennart Poettering <lennart@poettering.net>
Thu, 7 Mar 2019 15:55:19 +0000 (16:55 +0100)
src/core/execute.c

index 8f0e80290ccfcd79f6ba5d8c7899482cfc4722f4..4a0ffe198a253bbed39e411d37e559076b24cfbe 100644 (file)
@@ -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) {