mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 01:03:55 -06:00
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>
This commit is contained in:
parent
936c223051
commit
73f7fd8861
4 changed files with 7 additions and 15 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue