From b6ea61fcf5b031446a3855e3451bb425ee8887f0 Mon Sep 17 00:00:00 2001 From: "ludovic.rousseau" Date: Sat, 5 Feb 2011 20:54:31 +0000 Subject: [PATCH] Remove dead code pkcs15-authentic.c:692:2: warning: Value stored to 'caps' is never read caps = card->caps; ^ ~~~~~~~~~~ git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@5151 c6295689-39f2-0310-b995-f0e70906c6a9 --- src/pkcs15init/pkcs15-authentic.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/pkcs15init/pkcs15-authentic.c b/src/pkcs15init/pkcs15-authentic.c index f2841550..bc74b51c 100644 --- a/src/pkcs15init/pkcs15-authentic.c +++ b/src/pkcs15init/pkcs15-authentic.c @@ -662,7 +662,6 @@ authentic_pkcs15_store_key(struct sc_profile *profile, struct sc_pkcs15_card *p1 struct sc_context *ctx = card->ctx; struct sc_pkcs15_prkey_info *key_info = (struct sc_pkcs15_prkey_info *) object->data; size_t keybits = key_info->modulus_length; - unsigned long caps; struct sc_authentic_sdo *sdo; int rv; @@ -689,7 +688,6 @@ authentic_pkcs15_store_key(struct sc_profile *profile, struct sc_pkcs15_card *p1 sc_log(ctx, "sdo(mech:%X,id:%X,acls:%s)", sdo->docp.mech, sdo->docp.id, sc_dump_hex(sdo->docp.acl_data, sdo->docp.acl_data_len)); - caps = card->caps; card->caps &= ~SC_CARD_CAP_USE_FCI_AC; rv = sc_pkcs15init_authenticate(profile, p15card, sdo->file, SC_AC_OP_UPDATE); LOG_TEST_RET(ctx, rv, "SC_AC_OP_GENERATE authentication failed");