mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 17:23:56 -06:00
libcacard: remove useless initializers
libcacard has many functions which initializes local variables at declaration time, which are always assigned some values later (often right after declaration). Clean up these initializers. Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
This commit is contained in:
parent
116d554601
commit
1687a089f1
6 changed files with 21 additions and 22 deletions
|
@ -367,7 +367,7 @@ vcard_7816_status_t
|
|||
vcard_emul_login(VCard *card, unsigned char *pin, int pin_len)
|
||||
{
|
||||
PK11SlotInfo *slot;
|
||||
unsigned char *pin_string = NULL;
|
||||
unsigned char *pin_string;
|
||||
int i;
|
||||
SECStatus rv;
|
||||
|
||||
|
@ -423,7 +423,7 @@ static VReader *
|
|||
vcard_emul_find_vreader_from_slot(PK11SlotInfo *slot)
|
||||
{
|
||||
VReaderList *reader_list = vreader_get_reader_list();
|
||||
VReaderListEntry *current_entry = NULL;
|
||||
VReaderListEntry *current_entry;
|
||||
|
||||
if (reader_list == NULL) {
|
||||
return NULL;
|
||||
|
@ -1047,7 +1047,7 @@ void
|
|||
vcard_emul_replay_insertion_events(void)
|
||||
{
|
||||
VReaderListEntry *current_entry;
|
||||
VReaderListEntry *next_entry = NULL;
|
||||
VReaderListEntry *next_entry;
|
||||
VReaderList *list = vreader_get_reader_list();
|
||||
|
||||
for (current_entry = vreader_list_get_first(list); current_entry;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue