coolkey: Remove dead code
Thanks coverity ** CID 362100: Control flow issues (DEADCODE) /src/libopensc/card-coolkey.c: 1755 in coolkey_rsa_op()
This commit is contained in:
parent
595926471b
commit
b577531720
@ -1750,11 +1750,6 @@ static int coolkey_rsa_op(sc_card_t *card, const u8 * data, size_t datalen,
|
|||||||
u8 len_buf[2];
|
u8 len_buf[2];
|
||||||
size_t out_length;
|
size_t out_length;
|
||||||
|
|
||||||
/* Free card response -- nothing useful -- result is in export object */
|
|
||||||
if (crypt_out_p) {
|
|
||||||
free(*crypt_out_p);
|
|
||||||
}
|
|
||||||
|
|
||||||
r = coolkey_read_object(card, COOLKEY_DL_OBJECT_ID, 0, len_buf, sizeof(len_buf),
|
r = coolkey_read_object(card, COOLKEY_DL_OBJECT_ID, 0, len_buf, sizeof(len_buf),
|
||||||
priv->nonce, sizeof(priv->nonce));
|
priv->nonce, sizeof(priv->nonce));
|
||||||
if (r < 0) {
|
if (r < 0) {
|
||||||
|
Loading…
Reference in New Issue
Block a user