Il 23/06/2014 12:38, Alon Levy ha scritto:
> {
> -EmulatedState *card = opaque;
> +EmulatedState *card = container_of(notifier, EmulatedState, notifier);
> EmulEvent *event, *next;
> -char dummy;
> -int len;
>
> -do {
> -len = read(card->pipe[0], &dummy, sizeof(d
> Shut up Coverity's complaint about unchecked fcntl return values,
> and especially make the code simpler and more efficient.
>
> Signed-off-by: Paolo Bonzini
Reviewed-by: Alon Levy
one question below.
> ---
> hw/usb/ccid-card-emulated.c | 29 ++---
> 1 file changed,
Shut up Coverity's complaint about unchecked fcntl return values,
and especially make the code simpler and more efficient.
Signed-off-by: Paolo Bonzini
---
hw/usb/ccid-card-emulated.c | 29 ++---
1 file changed, 10 insertions(+), 19 deletions(-)
diff --git a/hw/usb/ccid-