Remove dead code
pkcs15-myeid.c:251:4: warning: Value stored to 'type' is never read type = SC_PKCS15INIT_USER_PIN; ^ ~~~~~~~~~~~~~~~~~~~~~~ pkcs15-myeid.c:244:4: warning: Value stored to 'type' is never read type = SC_PKCS15INIT_SO_PIN; ^ ~~~~~~~~~~~~~~~~~~~~ git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@5148 c6295689-39f2-0310-b995-f0e70906c6a9
This commit is contained in:
parent
d3a5a1389f
commit
041a1449f5
|
@ -236,19 +236,15 @@ static int
|
||||||
myeid_select_pin_reference(sc_profile_t *profile, sc_pkcs15_card_t *p15card,
|
myeid_select_pin_reference(sc_profile_t *profile, sc_pkcs15_card_t *p15card,
|
||||||
sc_pkcs15_pin_info_t *pin_info)
|
sc_pkcs15_pin_info_t *pin_info)
|
||||||
{
|
{
|
||||||
int type;
|
|
||||||
|
|
||||||
SC_FUNC_CALLED(p15card->card->ctx, SC_LOG_DEBUG_VERBOSE);
|
SC_FUNC_CALLED(p15card->card->ctx, SC_LOG_DEBUG_VERBOSE);
|
||||||
if (pin_info->flags & SC_PKCS15_PIN_FLAG_SO_PIN)
|
if (pin_info->flags & SC_PKCS15_PIN_FLAG_SO_PIN)
|
||||||
{
|
{
|
||||||
type = SC_PKCS15INIT_SO_PIN;
|
|
||||||
sc_debug(p15card->card->ctx, SC_LOG_DEBUG_NORMAL,
|
sc_debug(p15card->card->ctx, SC_LOG_DEBUG_NORMAL,
|
||||||
"PIN_FLAG_SO_PIN, ref (%d), tries_left (%d)",
|
"PIN_FLAG_SO_PIN, ref (%d), tries_left (%d)",
|
||||||
pin_info->reference,pin_info->tries_left);
|
pin_info->reference,pin_info->tries_left);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
type = SC_PKCS15INIT_USER_PIN;
|
|
||||||
sc_debug(p15card->card->ctx, SC_LOG_DEBUG_NORMAL,
|
sc_debug(p15card->card->ctx, SC_LOG_DEBUG_NORMAL,
|
||||||
"PIN_FLAG_PIN, ref (%d), tries_left (%d)",
|
"PIN_FLAG_PIN, ref (%d), tries_left (%d)",
|
||||||
pin_info->reference, pin_info->tries_left);
|
pin_info->reference, pin_info->tries_left);
|
||||||
|
|
Loading…
Reference in New Issue