From 7f1360b44089d69bae9a793741c0292fe91e32e4 Mon Sep 17 00:00:00 2001 From: Andrew Gregory Date: Fri, 1 Aug 2014 14:19:49 -0700 Subject: 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 Signed-off-by: Allan McRae --- lib/libalpm/signing.c | 1 - 1 file changed, 1 deletion(-) (limited to 'lib') 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"); -- cgit v1.2.3-70-g09d2