diff options
author | Akanksha Srivastava | 2016-10-13 22:21:31 +0200 |
---|---|---|
committer | Michael Tokarev | 2016-10-28 17:17:23 +0200 |
commit | 73f7fd8861ef4abeec0fea775f607d232a56962a (patch) | |
tree | 5fc2442219fc729578f877909ae1508b18b22213 /hw/usb/ccid-card-emulated.c | |
parent | MAINTAINERS: qemu-trivial information (diff) | |
download | qemu-73f7fd8861ef4abeec0fea775f607d232a56962a.tar.gz qemu-73f7fd8861ef4abeec0fea775f607d232a56962a.tar.xz qemu-73f7fd8861ef4abeec0fea775f607d232a56962a.zip |
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-emulated.c')
-rw-r--r-- | hw/usb/ccid-card-emulated.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/hw/usb/ccid-card-emulated.c b/hw/usb/ccid-card-emulated.c index 3213f9f8af..eceb5f3ee2 100644 --- a/hw/usb/ccid-card-emulated.c +++ b/hw/usb/ccid-card-emulated.c @@ -547,7 +547,7 @@ static int emulated_initfn(CCIDCardState *base) return 0; } -static int emulated_exitfn(CCIDCardState *base) +static void emulated_exitfn(CCIDCardState *base) { EmulatedState *card = EMULATED_CCID_CARD(base); VEvent *vevent = vevent_new(VEVENT_LAST, NULL, NULL); @@ -564,7 +564,6 @@ static int emulated_exitfn(CCIDCardState *base) qemu_mutex_destroy(&card->handle_apdu_mutex); qemu_mutex_destroy(&card->vreader_mutex); qemu_mutex_destroy(&card->event_list_mutex); - return 0; } static Property emulated_card_properties[] = { |