mirror of https://github.com/xemu-project/xemu.git
dev-smartcard-reader: white space fixes
Signed-off-by: Alon Levy <alevy@redhat.com> Reviewed-by: Marc-André Lureau <mlureau@redhat.com>
This commit is contained in:
parent
ad2181f2b6
commit
4543d43c61
|
@ -471,6 +471,7 @@ static const USBDesc desc_ccid = {
|
||||||
static const uint8_t *ccid_card_get_atr(CCIDCardState *card, uint32_t *len)
|
static const uint8_t *ccid_card_get_atr(CCIDCardState *card, uint32_t *len)
|
||||||
{
|
{
|
||||||
CCIDCardClass *cc = CCID_CARD_GET_CLASS(card);
|
CCIDCardClass *cc = CCID_CARD_GET_CLASS(card);
|
||||||
|
|
||||||
if (cc->get_atr) {
|
if (cc->get_atr) {
|
||||||
return cc->get_atr(card, len);
|
return cc->get_atr(card, len);
|
||||||
}
|
}
|
||||||
|
@ -482,6 +483,7 @@ static void ccid_card_apdu_from_guest(CCIDCardState *card,
|
||||||
uint32_t len)
|
uint32_t len)
|
||||||
{
|
{
|
||||||
CCIDCardClass *cc = CCID_CARD_GET_CLASS(card);
|
CCIDCardClass *cc = CCID_CARD_GET_CLASS(card);
|
||||||
|
|
||||||
if (cc->apdu_from_guest) {
|
if (cc->apdu_from_guest) {
|
||||||
cc->apdu_from_guest(card, apdu, len);
|
cc->apdu_from_guest(card, apdu, len);
|
||||||
}
|
}
|
||||||
|
@ -490,6 +492,7 @@ static void ccid_card_apdu_from_guest(CCIDCardState *card,
|
||||||
static int ccid_card_exitfn(CCIDCardState *card)
|
static int ccid_card_exitfn(CCIDCardState *card)
|
||||||
{
|
{
|
||||||
CCIDCardClass *cc = CCID_CARD_GET_CLASS(card);
|
CCIDCardClass *cc = CCID_CARD_GET_CLASS(card);
|
||||||
|
|
||||||
if (cc->exitfn) {
|
if (cc->exitfn) {
|
||||||
return cc->exitfn(card);
|
return cc->exitfn(card);
|
||||||
}
|
}
|
||||||
|
@ -499,6 +502,7 @@ static int ccid_card_exitfn(CCIDCardState *card)
|
||||||
static int ccid_card_initfn(CCIDCardState *card)
|
static int ccid_card_initfn(CCIDCardState *card)
|
||||||
{
|
{
|
||||||
CCIDCardClass *cc = CCID_CARD_GET_CLASS(card);
|
CCIDCardClass *cc = CCID_CARD_GET_CLASS(card);
|
||||||
|
|
||||||
if (cc->initfn) {
|
if (cc->initfn) {
|
||||||
return cc->initfn(card);
|
return cc->initfn(card);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue