Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAndrew Gregory <andrew.gregory.8@gmail.com>2014-08-01 14:19:49 -0700
committerAllan McRae <allan@archlinux.org>2014-08-04 14:23:58 +1000
commit7f1360b44089d69bae9a793741c0292fe91e32e4 (patch)
treec356d93bb13dad7586d28d9d171767db10d04445 /lib
parentf4992960ad4a325184802a47dc23d53d15be452f (diff)
signing.c: remove useless error check
CHECK_ERR checks gpg_err which is a local variable. Calling gpg_op_import_result cannot modify it. Signed-off-by: Andrew Gregory <andrew.gregory.8@gmail.com> Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'lib')
-rw-r--r--lib/libalpm/signing.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/libalpm/signing.c b/lib/libalpm/signing.c
index e46fa2ea..c0fb006e 100644
--- a/lib/libalpm/signing.c
+++ b/lib/libalpm/signing.c
@@ -404,7 +404,6 @@ static int key_import(alpm_handle_t *handle, alpm_pgpkey_t *key)
gpg_err = gpgme_op_import_keys(ctx, keys);
CHECK_ERR();
result = gpgme_op_import_result(ctx);
- CHECK_ERR();
/* we know we tried to import exactly one key, so check for this */
if(result->considered != 1 || !result->imports) {
_alpm_log(handle, ALPM_LOG_DEBUG, "could not import key, 0 results\n");