fixed warning unused variable
This commit is contained in:
parent
359660c454
commit
35b74f3923
|
@ -42,8 +42,6 @@ default_match_card(struct sc_card *card)
|
|||
static int
|
||||
default_init(struct sc_card *card)
|
||||
{
|
||||
int r;
|
||||
|
||||
LOG_FUNC_CALLED(card->ctx);
|
||||
|
||||
card->name = "Unsupported card";
|
||||
|
|
|
@ -2096,7 +2096,6 @@ static int dnie_pin_cmd(struct sc_card *card,
|
|||
LOG_FUNC_RETURN(card->ctx, res);
|
||||
}
|
||||
|
||||
|
||||
/**********************************************************************/
|
||||
|
||||
/**
|
||||
|
|
|
@ -553,7 +553,8 @@ sc_pkcs15init_delete_by_path(struct sc_profile *profile, struct sc_pkcs15_card *
|
|||
struct sc_context *ctx = p15card->card->ctx;
|
||||
struct sc_file *parent = NULL, *file = NULL;
|
||||
struct sc_path path;
|
||||
int rv, file_type = SC_FILE_TYPE_DF;
|
||||
int rv;
|
||||
/*int file_type = SC_FILE_TYPE_DF;*/
|
||||
|
||||
LOG_FUNC_CALLED(ctx);
|
||||
sc_log(ctx, "trying to delete '%s'", sc_print_path(file_path));
|
||||
|
@ -582,7 +583,7 @@ sc_pkcs15init_delete_by_path(struct sc_profile *profile, struct sc_pkcs15_card *
|
|||
}
|
||||
else {
|
||||
sc_log(ctx, "Try to get the parent's 'DELETE' access");
|
||||
file_type = file->type;
|
||||
/*file_type = file->type;*/
|
||||
if (file_path->len >= 2) {
|
||||
/* Select the parent DF */
|
||||
path.len -= 2;
|
||||
|
|
Loading…
Reference in New Issue