serial: simplify tsr_retry reset
commitbce933b85a34514fe34fa559be1d8ccd1f39f954
authorPaolo Bonzini <pbonzini@redhat.com>
Tue, 14 Jun 2016 12:20:50 +0000 (14 14:20 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 29 Jun 2016 12:03:47 +0000 (29 14:03 +0200)
treefb6a5d284cab47e1ccfad652a0d4fbaa8176beed
parent807464d8a7326e1025a2f392bf41636b0809d6da
serial: simplify tsr_retry reset

Move common code outside the if, and reset tsr_retry even in loopback mode.
Right now it cannot become non-zero, but it will be possible as soon as
we start respecting the baud rate.

Tested-by: Bret Ketchum <bcketchum@gmail.com>
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
hw/char/serial.c