dryang / rpms / systemd

Forked from rpms/systemd a year ago
Clone
661545
From 8606f4b13ba677efad8bb6aae2d61c98e23a75f2 Mon Sep 17 00:00:00 2001
661545
From: Frantisek Sumsal <fsumsal@redhat.com>
661545
Date: Wed, 27 Feb 2019 18:53:19 +0100
661545
Subject: [PATCH] import: drop unnecessary condition
661545
661545
Relevant commit: d61b34f1b22d1d7a641a1652ff23113d3e87ace7
661545
661545
Resolves: #1694605
661545
---
661545
 src/import/import-common.c | 3 +--
661545
 1 file changed, 1 insertion(+), 2 deletions(-)
661545
661545
diff --git a/src/import/import-common.c b/src/import/import-common.c
661545
index 243e657c56..713a218c67 100644
661545
--- a/src/import/import-common.c
661545
+++ b/src/import/import-common.c
661545
@@ -455,8 +455,7 @@ int import_verify(
661545
         }
661545
 
661545
 finish:
661545
-        if (sig_file >= 0)
661545
-                unlink(sig_file_path);
661545
+        (void) unlink(sig_file_path);
661545
 
661545
         if (gpg_home_created)
661545
                 rm_rf_dangerous(gpg_home, false, true, false);