serial: make tsr_retry unsigned
commit807464d8a7326e1025a2f392bf41636b0809d6da
authorPaolo Bonzini <pbonzini@redhat.com>
Tue, 14 Jun 2016 12:17:16 +0000 (14 14:17 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 29 Jun 2016 12:03:47 +0000 (29 14:03 +0200)
treeb65b691b7679bbf170a2eaa5354363d23a2c7d33
parent0ead93120eb7bd770b32adc00b5ec1ee721626dc
serial: make tsr_retry unsigned

It can never become negative; reflect this in the type of the field
and simplify the conditions.

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
include/hw/char/serial.h