chiark / gitweb /
shared/machine-pool: remove unnecessary check
[elogind.git] / src / shared / machine-pool.c
index 3eafb9443a1cdec322122580aac6a076b4f2b134..e7671a3c5ecfbb46868fd7e8023c1dc111454f63 100644 (file)
@@ -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);