aboutsummaryrefslogtreecommitdiffstats
path: root/scd/apdu.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2011-08-10 12:11:30 +0000
committerWerner Koch <[email protected]>2011-08-10 12:11:30 +0000
commit816bee1fa0d833ac72ea4e7d52465e6e1da2645d (patch)
tree91be759197e74f2e32f821edecce8df6eb444742 /scd/apdu.c
parentFix autoconf warnings and update config.* files. (diff)
downloadgnupg-816bee1fa0d833ac72ea4e7d52465e6e1da2645d.tar.gz
gnupg-816bee1fa0d833ac72ea4e7d52465e6e1da2645d.zip
Fixed set but unused variable bugs
Diffstat (limited to 'scd/apdu.c')
-rw-r--r--scd/apdu.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/scd/apdu.c b/scd/apdu.c
index 176ab914b..ac563adef 100644
--- a/scd/apdu.c
+++ b/scd/apdu.c
@@ -1602,7 +1602,7 @@ open_pcsc_reader_wrapped (const char *portstr)
unsigned char msgbuf[9];
int err;
unsigned int dummy_status;
- int sw = SW_HOST_CARD_IO_ERROR;
+
/* Note that we use the constant and not the fucntion because this
code won't be be used under Windows. */
const char *wrapperpgm = GNUPG_LIBEXECDIR "/gnupg-pcsc-wrapper";
@@ -1746,7 +1746,6 @@ open_pcsc_reader_wrapped (const char *portstr)
if (err)
{
log_error ("PC/SC OPEN failed: %s\n", pcsc_error_string (err));
- sw = pcsc_error_to_sw (err);
goto command_failed;
}