removed unused check

This commit is contained in:
Frank Morgner 2018-06-21 14:51:42 +02:00
parent 259b7ec41c
commit ed0d829eab
2 changed files with 4 additions and 4 deletions

View File

@ -1377,7 +1377,7 @@ static int mcrd_compute_signature(sc_card_t * card,
int r;
sc_apdu_t apdu;
if (card == NULL || data == NULL || out == NULL)
if (data == NULL || out == NULL)
return SC_ERROR_INVALID_ARGUMENTS;
env = &priv->sec_env;

View File

@ -823,7 +823,7 @@ static int read_public_key(void)
out:
if (cert)
sc_pkcs15_free_certificate(cert);
else if (pubkey)
else
sc_pkcs15_free_pubkey(pubkey);
return r;
@ -1196,7 +1196,7 @@ static int read_ssh_key(void)
fclose(outf);
if (cert)
sc_pkcs15_free_certificate(cert);
else if (pubkey)
else
sc_pkcs15_free_pubkey(pubkey);
return 0;
fail:
@ -1206,7 +1206,7 @@ fail2:
fclose(outf);
if (cert)
sc_pkcs15_free_certificate(cert);
else if (pubkey)
else
sc_pkcs15_free_pubkey(pubkey);
return SC_ERROR_OUT_OF_MEMORY;
}