aboutsummaryrefslogtreecommitdiff
path: root/hw/usb/ccid.h
diff options
context:
space:
mode:
authorAkanksha Srivastava <akanksha.dlf@gmail.com>2016-10-14 01:51:31 +0530
committerMichael Tokarev <mjt@tls.msk.ru>2016-10-28 18:17:23 +0300
commit73f7fd8861ef4abeec0fea775f607d232a56962a (patch)
tree5fc2442219fc729578f877909ae1508b18b22213 /hw/usb/ccid.h
parent936c223051cf2a59ad7be9cc353b8426d5a02173 (diff)
usb: Change *_exitfn return type from int to void
The *_exitfn functions cannot fail and should not be returning int. This also removes the passthru_exitfn since this callback does nothing as of now. This was suggested as a Bite-sized task for code cleanup. Signed-off-by: Akanksha Srivastava <akanksha.dlf@gmail.com> Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com> Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Diffstat (limited to 'hw/usb/ccid.h')
-rw-r--r--hw/usb/ccid.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/usb/ccid.h b/hw/usb/ccid.h
index 9334da8acd..1f070116d6 100644
--- a/hw/usb/ccid.h
+++ b/hw/usb/ccid.h
@@ -33,7 +33,7 @@ typedef struct CCIDCardClass {
void (*apdu_from_guest)(CCIDCardState *card,
const uint8_t *apdu,
uint32_t len);
- int (*exitfn)(CCIDCardState *card);
+ void (*exitfn)(CCIDCardState *card);
int (*initfn)(CCIDCardState *card);
} CCIDCardClass;