summaryrefslogtreecommitdiff
path: root/src/shared/machine-pool.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/shared/machine-pool.c')
-rw-r--r--src/shared/machine-pool.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/shared/machine-pool.c b/src/shared/machine-pool.c
index 3eafb9443a..e7671a3c5e 100644
--- a/src/shared/machine-pool.c
+++ b/src/shared/machine-pool.c
@@ -151,8 +151,7 @@ static int setup_machine_raw(uint64_t size, sd_bus_error *error) {
return r;
fail:
- if (tmp)
- unlink_noerrno(tmp);
+ unlink_noerrno(tmp);
if (pid > 1)
kill_and_sigcont(pid, SIGKILL);