teknoraver / rpms / systemd

Forked from rpms/systemd 3 months ago
Clone

Blame SOURCES/0779-import-drop-unnecessary-condition.patch

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