usb-ccid: Drop unused CCIDCardInfo callback print()
Signed-off-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
3836620c09
commit
1cc2428cce
@ -29,7 +29,6 @@ struct CCIDCardState {
|
|||||||
*/
|
*/
|
||||||
struct CCIDCardInfo {
|
struct CCIDCardInfo {
|
||||||
DeviceInfo qdev;
|
DeviceInfo qdev;
|
||||||
void (*print)(Monitor *mon, CCIDCardState *card, int indent);
|
|
||||||
const uint8_t *(*get_atr)(CCIDCardState *card, uint32_t *len);
|
const uint8_t *(*get_atr)(CCIDCardState *card, uint32_t *len);
|
||||||
void (*apdu_from_guest)(CCIDCardState *card,
|
void (*apdu_from_guest)(CCIDCardState *card,
|
||||||
const uint8_t *apdu,
|
const uint8_t *apdu,
|
||||||
|
@ -1104,20 +1104,9 @@ static Answer *ccid_peek_next_answer(USBCCIDState *s)
|
|||||||
: &s->pending_answers[s->pending_answers_start % PENDING_ANSWERS_NUM];
|
: &s->pending_answers[s->pending_answers_start % PENDING_ANSWERS_NUM];
|
||||||
}
|
}
|
||||||
|
|
||||||
static void ccid_bus_dev_print(Monitor *mon, DeviceState *qdev, int indent)
|
|
||||||
{
|
|
||||||
CCIDCardState *card = DO_UPCAST(CCIDCardState, qdev, qdev);
|
|
||||||
CCIDCardInfo *info = DO_UPCAST(CCIDCardInfo, qdev, qdev->info);
|
|
||||||
|
|
||||||
if (info->print) {
|
|
||||||
info->print(mon, card, indent);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
static struct BusInfo ccid_bus_info = {
|
static struct BusInfo ccid_bus_info = {
|
||||||
.name = "ccid-bus",
|
.name = "ccid-bus",
|
||||||
.size = sizeof(CCIDBus),
|
.size = sizeof(CCIDBus),
|
||||||
.print_dev = ccid_bus_dev_print,
|
|
||||||
.props = (Property[]) {
|
.props = (Property[]) {
|
||||||
DEFINE_PROP_UINT32("slot", struct CCIDCardState, slot, 0),
|
DEFINE_PROP_UINT32("slot", struct CCIDCardState, slot, 0),
|
||||||
DEFINE_PROP_END_OF_LIST(),
|
DEFINE_PROP_END_OF_LIST(),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user