aboutsummaryrefslogtreecommitdiff
path: root/hw/usb/ccid-card-passthru.c
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-card-passthru.c
parent936c223051cf2a59ad7be9cc353b8426d5a02173 (diff)
downloadqemu-73f7fd8861ef4abeec0fea775f607d232a56962a.zip
qemu-73f7fd8861ef4abeec0fea775f607d232a56962a.tar.gz
qemu-73f7fd8861ef4abeec0fea775f607d232a56962a.tar.bz2
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-card-passthru.c')
-rw-r--r--hw/usb/ccid-card-passthru.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/hw/usb/ccid-card-passthru.c b/hw/usb/ccid-card-passthru.c
index 325129a..88cb6d8 100644
--- a/hw/usb/ccid-card-passthru.c
+++ b/hw/usb/ccid-card-passthru.c
@@ -365,11 +365,6 @@ static int passthru_initfn(CCIDCardState *base)
return 0;
}
-static int passthru_exitfn(CCIDCardState *base)
-{
- return 0;
-}
-
static VMStateDescription passthru_vmstate = {
.name = "ccid-card-passthru",
.version_id = 1,
@@ -396,7 +391,6 @@ static void passthru_class_initfn(ObjectClass *klass, void *data)
CCIDCardClass *cc = CCID_CARD_CLASS(klass);
cc->initfn = passthru_initfn;
- cc->exitfn = passthru_exitfn;
cc->get_atr = passthru_get_atr;
cc->apdu_from_guest = passthru_apdu_from_guest;
set_bit(DEVICE_CATEGORY_INPUT, dc->categories);