coolkey: Drop dead code (CID 351911)
default branch of the switch calls continue, preventing going out of the loop without obj_info set.
This commit is contained in:
parent
295f399304
commit
d1457e9fa3
|
@ -670,9 +670,6 @@ static int sc_pkcs15emu_coolkey_init(sc_pkcs15_card_t *p15card)
|
||||||
sc_log(card->ctx, "Unknown object type %lu, skipping", obj_class);
|
sc_log(card->ctx, "Unknown object type %lu, skipping", obj_class);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if (obj_info == NULL) {
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
|
|
||||||
r = sc_pkcs15emu_object_add(p15card, obj_type, &obj_obj, obj_info);
|
r = sc_pkcs15emu_object_add(p15card, obj_type, &obj_obj, obj_info);
|
||||||
if (r != SC_SUCCESS)
|
if (r != SC_SUCCESS)
|
||||||
|
|
Loading…
Reference in New Issue